Add support for SpreadElement
node type when resulting array is ArrayLiteralExpression
#2055
Labels
SpreadElement
node type when resulting array is ArrayLiteralExpression
#2055
Hi, when create an Array literal type the parser works fine as the resulting node is
ArrayLiteralExpression
That is, when creating something like so:
but when combining two or more literalArrays into a new literal array the subNodeParser is finding a a
SpreadElement
for each array first.I tried to create a custom parser for this but I'm not sure how to, as it need to return a type for each node where in this case I would want to return a single type for the entire array and not a type per spread operation.
Note: An alternative would be to create a type like so
Which would work but will result in a anyOf instead of an enum which I need for my usecase.
The text was updated successfully, but these errors were encountered: