Replies: 1 comment 2 replies
-
They can still be arrays. But you are right, functions get resolved so see some potential here. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could the return type of
children()
helper be narrowed to not includeArrayElement
&FunctionElement
?All the arrays and functions are recursively resolved to just Nodes/primitive values, so the types could reflect that. It would help with modifying elements, as there would be less types to worry about.
Something like this could work:
edit: actually there is
Exclude
:Beta Was this translation helpful? Give feedback.
All reactions