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.io – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Categorized in