✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now
Experimental feature


Generate TypeScript type definition from a Studio schema and GROQ queries

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

   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?