You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pagination and query TypeScript improvements #2564
The current TypeScript related improvements in v5 are pretty solid but the following improvements should still be included:
Typed queries: This would allow to type params.query which will play well with the new schema types.
Inferred pagination: The return value for a find is currently Paginated<T>|T[] which means you always have to cast the result. We should find a way to either set a fixed find return value or infer it from the paginate settings.
Activity
seonglae commentedon Apr 19, 2022
Inferred pagination is needed for jsdoc which has no manual type casting
daffl commentedon Apr 23, 2022
@seonglae The way it is implemented in #2605 still allows both signatures so that should still be possible.