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
Using State extends "empty" ? [] means that the array is essentially never[] | [RTNode, ...RTNode[]]. This means that looping over items basically never works, because they can also be typed as never.
Is your feature request related to a problem? Please describe.
Currently, the codegen outputs something like this for
RichTextField
:Using
State extends "empty" ? []
means that the array is essentiallynever[] | [RTNode, ...RTNode[]]
. This means that looping over items basically never works, because they can also be typed asnever
.Describe the solution you'd like
Rewrite the type like this:
An empty array doesn't require getting typed, right?
Describe alternatives you've considered
Overriding the types manually.
Additional context
The text was updated successfully, but these errors were encountered: