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.
The current TypeScript related improvements in v5 are pretty solid but the following improvements should still be included:
params.querywhich will play well with the new schema types.findis currentlyPaginated<T>|T[]which means you always have to cast the result. We should find a way to either set a fixedfindreturn value or infer it from thepaginatesettings.