Allow for typed block collections #2617
knownasred
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
As a temporary solution I'm using this:
Might be helpful for now. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Related discord discussion
I have the same blocks present within multiple Field across collections, and while in the GraphQL output, the Blocks are typed with an explicit notation, it is not the case for the typescript ones, that instead in-lines all the possibilities.
Is there a reason for that, or just an oversight?
This seems like an interesting feature to add, as my current solution is to generate typings manually for the block types, and using them on the frontend.
Beta Was this translation helpful? Give feedback.
All reactions