Skip to content
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

Implement automatic typings for queries & mutations compatible with GraphQL Codegen #134

Open
ACERposS opened this issue Nov 25, 2024 · 0 comments

Comments

@ACERposS
Copy link

Hi, not sure if this package is still being maintained but it would be beneficial to have TypeScript support automatically functional with the official client preset.

[email protected]

In the meantime the attached patch can be used with PNPM's built-in patching functionality to provide automatic first-class TypeScript support with query and mutation equivalent to that available with the React-based useQuery and useMutation hooks.

(In package.json:)

"pnpm": {
  "patchedDependencies": {
    "[email protected]": "patches/[email protected]"
  }
}
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

No branches or pull requests

1 participant