-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optional generic type parms for variables on low level methods #3588
Add optional generic type parms for variables on low level methods #3588
Conversation
…tion/subscription methods
Generated by 🚫 dangerJS |
My errors. ERROR in /home/keyfu/dm-customerapp-ui/node_modules/apollo-client/ApolloClient.d.ts (108,27): Generic type 'Query' requires 1 type argument(s). I'm using angular 4 and this is my package.json |
@keyfu I fail to see the relevance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @mvestergaard - thanks very much!
Similar to #3541, the ability to specify the type of variables is missing on
watchQuery, query, mutate and subscribe
methods inApolloClient
.This PR adds optional generic type parameters to those methods that default to
OperationVariables
which seems to be used throughout the codebase.Related to that, the parameters added in #3541 that were defaulted to
any
, now also useOperationVariables
where it makes sense.