sanity
sanity copied to clipboard
CLI TypeGen: Generate types only for GROQ queries
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.