Closed jmaldon1 closed 1 year ago
Hello,
I am using an ESlint rule that requires me to explicitly set my function return types. So I need to type the return of my loader function.
loader
Example:
const loader: ({ request, params }: LoaderArgs) => Promise<TypedJsonResponse<LoaderData>>
It doesn't seem that TypedJsonResponse is importable from this library making it not possible to explicitly set the return type.
TypedJsonResponse
Hello,
I am using an ESlint rule that requires me to explicitly set my function return types. So I need to type the return of my
loader
function.Example:
It doesn't seem that
TypedJsonResponse
is importable from this library making it not possible to explicitly set the return type.