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