graphql<T>(...) should infer T automatically #37644
Unanswered
tippfelher
asked this question in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Typing the return value of
graphql<T>(...)
is quite annoying, because one has to pass the query typeT
manually. For example:T
however, can be inferred from the context.See this playground to try out type inference and auto-completion.
Comments contain the general idea on how to this can be achieved.
Beta Was this translation helpful? Give feedback.
All reactions