storyblok-generate-ts
storyblok-generate-ts copied to clipboard
Typed groups?
Hi,
within storyblok you can create fields of type group
. The group itself becomes a property of the defintion.
For example, I created a group colors
and would like to have all colors inside there like primary
, secondary
.
So far colors
is exported as a field with type any
.
I would like to access thoose properties with colors.primary
and not just primary
. Is this somehow possible?
I think you'd extend your TS with overwriting the colors similar to this approach: https://github.com/dohomi/storyblok-generate-ts?tab=readme-ov-file#resolve-relations