PromiseHash losing type inferrence at some point with GraphQL Typed Document Nodes 👀 #270
Unanswered
TheRealFlyingCoder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So i'm having a little trouble at the moment getting proper complex types to come out of PromiseHash occasionally.
I'm using graphql with TypedDocumentNodes and a helper function to run queries:
An example of simple usage would be
This works fine, the types are inferred no problem, but stick it in a promiseHash and it falls back to the extended TResult:
Any thoughts would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions