CLI reference
TypeGen
Generate TypeScript type definition from a Studio schema and GROQ queries
Experimental feature
This article describes an experimental Sanity feature. The APIs described are subject to change and the documentation may not be completely accurate.
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 page helpful?