This changes the types generated for a WIT list to use Array<> syntax, which allows for something like option<foo> to be expanded to foo | undefined without generating the wrong type signature. Using Array<> also avoids the need to wrapping too much stuff in parens.
Closes #480
This changes the types generated for a WIT
list
to useArray<>
syntax, which allows for something likeoption<foo>
to be expanded tofoo | undefined
without generating the wrong type signature. UsingArray<>
also avoids the need to wrapping too much stuff in parens.