storyblok / storyblok-js-client

Universal JavaScript client for Storyblok's API
MIT License
125 stars 87 forks source link

Type utility for blok schema definitions #802

Open shabab477 opened 5 months ago

shabab477 commented 5 months ago

Bit of background

In our team we are using the approach of defining the blok schemas in the code rather than navigating through the UI. This has the benefit of version controlling the schema definitions and also provides transparency, because then we don't have to look at the Storyblok dashboard to verify what the configuration looks like. We use the CLI tool to CRUD the schema definitions.

Problem

Now there are two problems that are being faced here:

Expected Behavior

Current Behavior

If you like the ideas and find it aligned with the Storyblok teams' vision(if there is any) of having more types then I can have a discussion with my team to assign some helpful hands.

alvarosabu commented 1 week ago

Hi @shabab477 thank you for opening such detailed feedback. We are aware of it and are working right now on shaping up what will be the next major version of the client, and the main focus will be proper typing and generics on the table.

Would you be interested in helping us try out the new approach when we implement it to see if it covers your case completely?

Thanks a lot