Skip to content

Conversation

@fratzinger
Copy link
Contributor

Problem:

I use the [key: string]: any hack for Params, as suggested in the migration guide:

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.

@fratzinger fratzinger merged commit 300644f into master Jun 21, 2023
@fratzinger fratzinger deleted the fix/update-dependencies-infer-paginate-params branch June 27, 2023 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants