Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typed groups? #70

Open
combi-35 opened this issue Apr 26, 2024 · 1 comment
Open

Typed groups? #70

combi-35 opened this issue Apr 26, 2024 · 1 comment

Comments

@combi-35
Copy link

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.
Bildschirmfoto 2024-04-26 um 11 19 09

I would like to access thoose properties with colors.primary and not just primary. Is this somehow possible?

@dohomi
Copy link
Owner

dohomi commented Apr 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants