-
Notifications
You must be signed in to change notification settings - Fork 13
Incorrect Typescript typings #525
Comments
@TheCrow1213 Seen the same. Feel free to create PR with the fix. |
@wtrocki Can do! |
I'll clone this weekend and submit a PR. |
Lol I didn't get to it but I will I promise! |
@wtrocki @kamilkisiela I don't have permissions to push up a branch, but have a small fix ready if ya'll want it. I have other ideas for extending Typescript support so that Loona better integrates with other tools like graphql codegen, if ya'll are looking for more contributors :) |
@TheCrow1213 Let's wait for @kamilkisiela reply. I'm also happy to contribute back. |
I need to move pretty fast in my current project for work, so I think for now I will fork Loona and make the necessary modification myself. If this project becomes active again and ya'll need contributors hit me up. |
@TheCrow1213 can you share a reproduction? something from your solution? or a failing test? |
Currently using @loona/react for a new project, and running into issues wrt Typescript.
For example the first parameter to
patchQuery
in Context is typed as a DocumentNode, which only allows for referencing a query with no variables set, which is very limiting. Actual type should beDocumentNode | { query: DocumentNode, variables: any }
or something similar.loona/packages/core/src/types/common.ts
Line 17 in 58e56c1
Great library, thanks for all the work on this!
The text was updated successfully, but these errors were encountered: