You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. More appropriate would be StoryblokStory, however there is nothing saying that all the generated types match SbBlokData.
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.
The text was updated successfully, but these errors were encountered:
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.
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. More appropriate would be StoryblokStory, however there is nothing saying that all the generated types match SbBlokData.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.The text was updated successfully, but these errors were encountered: