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

CLI TypeGen: Generate types only for GROQ queries #6343

Open
hb20007 opened this issue Apr 12, 2024 · 0 comments
Open

CLI TypeGen: Generate types only for GROQ queries #6343

hb20007 opened this issue Apr 12, 2024 · 0 comments
Labels
typegen Issues related to TypeScript types generation

Comments

@hb20007
Copy link

hb20007 commented Apr 12, 2024

Currently, npx sanity typegen generate generates TypeScript types for all schema types and all GROQ queries.

I request an option to generate types only for GROQ queries. This option is useful because I need types only for the data returned from my queries for handing in TS. So, I only a need a simple file with those types.

@sgulseth sgulseth added the typegen Issues related to TypeScript types generation label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typegen Issues related to TypeScript types generation
Projects
None yet
Development

No branches or pull requests

2 participants