StoryblokRichTextNode
type not 100% correct
#151
Labels
bug
Something isn't working
good first issue
[Contribution] Good for newcomers
p2-edge-case
[Priority] Bugs with workarounds or limited impact.
PR welcome
[Contribution] Pull requests are welcome.
Expected Behavior
If I investigated it correctly, the type should require
content
to be defined at the first level, but all sub-nodes don't needcontent
to be present.Current Behavior
The API can return
undefined
ascontent
in sub-nodes ofStoryblokRichTextNode
, but the types right now say that in every level of the RichText structure content is present.We use a custom type which raises the following error because sub-nodes always need content present, which is not the case at the API level.
Steps to Reproduce
N/A
The text was updated successfully, but these errors were encountered: