Unlock seamless workflows and faster delivery with our latest releases – get the details
Back to changelog

Improvements to Sanity TypeGen

✨ Highlights

Sanity TypeGen improvements

Quality of life-updates to Sanity TypeGen (thanks @okj579!):

  • TypeGen will no longer be confused by import statements using the pattern export * from 'filename.ts'
  • TypeGen now supports slightly more advanced types of string interpolation, like:
const query = defineQuery(`*[_type="asdf"] { 
    "linkA": ${linkQuery('linkA')},
}`)

Install or upgrade Sanity Studio

To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.

If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.

Published November 12, 2024