I'm trying to import a function in a class, and the function is located in an other file. I have types.ts with :
export castToString = () => {//implementation}
And in my file form.tsx, I want to import this function :
import {castToString } from '../types.ts'
To use this function, I call it like this :
castToString ()
But it doesn't work, an idea ? Thank you
export const castToString = ...