Generic type can not be seen while using wasp/client/operations
I have created a function that in db/operation.ts and i am using it in routes/informationPage.tsx like "import {getTableData} from 'wasp/client/operations'; Thats meaning i am calling this function through the wasp. In operations.ts file the function is written like
"
interface getTableDataProps<T> {
........
};
export const getTableData = async <T>(props: getTableDataProps<T>): Promise<T[]> => {
......
}
However, i am getting this error and when we import function from wasp/client/operations it seems like no T generic type and if we imports it directly from operations.ts file it has generic type <T> so that i can call the function. Otherwise I cannot call the function through the wasp
"
interface getTableDataProps<T> {
........
};
export const getTableData = async <T>(props: getTableDataProps<T>): Promise<T[]> => {
......
}
However, i am getting this error and when we import function from wasp/client/operations it seems like no T generic type and if we imports it directly from operations.ts file it has generic type <T> so that i can call the function. Otherwise I cannot call the function through the wasp


