Adds support for UNION and INTERFACE types.
INTERFACE is treated as an OBJECT.
UNION support remains basic, it will not prefill the union with subtypes but is now accepted by the parser and present in the output as a commented type.
Better support could be done, but my bandwidth on this project is too thin now, and UNIONS don't seem to be used a lot.
Checklist:
[x] I have performed a self-review of my own code
[x] I have ran deno task ci to ensure that my code is formatted and linted.
[x] I have linked the related issue (if there is no related issue please
create one)
[ ] I have added tests if applicable (needs tests to be ready)
Description
Fixes #44 and #47
Adds support for UNION and INTERFACE types. INTERFACE is treated as an OBJECT. UNION support remains basic, it will not prefill the union with subtypes but is now accepted by the parser and present in the output as a commented type. Better support could be done, but my bandwidth on this project is too thin now, and UNIONS don't seem to be used a lot.
Checklist:
deno task ci
to ensure that my code is formatted and linted.I have added tests if applicable(needs tests to be ready)