Open
Description
An idea that @judofyr suggested was essentially a polyfill. Rather than switching imports to @sanity-typed
, we could enable importing something like @sanity-typed/polyfill
and it would globally augment sanity
's native packages to use @sanity-typed/*
under the covers.
I don't see this being possible but we should see. One of the reason we went with these "wrapper" packages in the first place was ultimately because globally augmenting creates intersections, and we often want to fully replace a type rather than intersect, so it wasn't possible. That being said, with some work on @sanity-io's side, we may be able to get flexible enough types to accomplish something here.