sanity icon indicating copy to clipboard operation
sanity copied to clipboard

CLI TypeGen: Generate types only for GROQ queries

Open hb20007 opened this issue 4 months ago • 0 comments

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.

hb20007 avatar Apr 12 '24 10:04 hb20007