storyblok-generate-ts
storyblok-generate-ts copied to clipboard
Consider extending `SbBlokData` for all blok-types
At the moment there is no generic way to declare responses from the storyblok API. I'm declaring the response of useStoryblokApi().get()
as StoryblokStory
Does adding extends SbBlokData
to all generated types make sense? If so, please consider adding it. This would also mean that all generated interfaces does no longer need to declare _uid and [k:string] anymore.
If there are some new types from Storyblok itself we can use I am happy to review a PR. This library was written in a time where Storyblok didn't deliver any consumable types.