Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive
Experimental feature

TypeGen

Generate TypeScript type definition from a Studio schema and GROQ queries

usage: sanity typegen [--default] [-v|--version] [-d|--debug] [-h|--help] <command> [<args>]

Commands:
   generate  Generates TypeScript types from schema types and GROQ queries

See 'sanity help typegen <command>' for specific information on a subcommand.

Was this article helpful?