V3 Documents TS definitions #3848
Unanswered
scerelli
asked this question in
Sanity Studio Support
Replies: 1 comment
-
Ah yes great to know isn’t me being a stupid typescript noob; I was thinking this would be possible and very helpful. It’s surely a selling point of the unified studio + frontend. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
i'm trying to migrate to V3 and I was looking for a way, if there is one, to use the documents type definitions via import, for example how can I achieve something like this:
in sanity
frontend
function normalizeProduct(product: ProductSchema <-- this one) {}
it would be possible to achieve somehting like this with v3 out of the box? like prisma does. because in v2 i was using a type generator but now that api are fully typed i tought you would expose also document definitions types.
Beta Was this translation helpful? Give feedback.
All reactions