Go Behind the Experience to see how Tecovas brings the West to life with Sanity 🤠 July 18th
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?