Closed fratzinger closed 1 year ago
I use the [key: string]: any hack for Params, as suggested in the migration guide:
[key: string]: any
Params
declare module "@feathersjs/feathers" { interface Params { [key: string]: any; } }
see: https://feathersjs.com/guides/migrating.html#typed-params-and-query
When doing this, the find params can not be inferred correctly and the function overloads do not work. By using conditional types the ReturnResult is correct.
find
Problem:
I use the
[key: string]: any
hack forParams
, as suggested in the migration guide:see: https://feathersjs.com/guides/migrating.html#typed-params-and-query
When doing this, the
find
params can not be inferred correctly and the function overloads do not work. By using conditional types the ReturnResult is correct.