TypeScript and the Parts System - Making things more Descriptive

1 replies
Last updated: May 24, 2021
Just a random question, but are there any current plans to make the types a bit more descriptive for the parts system?
Referring to the "gotcha" in this:

https://www.sanity.io/docs/using-typescript-in-sanity-studio
I realize that the parts system is for abstractions, so it may not really make sense for them to be things
other than
any
, but wanted to see if there are any plans in the works to make this align with my TypeScript OCD 😅
any
makes me sad (usually)
May 24, 2021, 9:10 PM
We're gradually moving things out of the parts system (and rewriting things in typescript), but it'll take some time before we're fully there
May 24, 2021, 10:39 PM

Sanity– build remarkable experiences at scale

The Sanity Composable Content Cloud is the headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?

Categorized in