Error when generating from `node/globals.d.ts`
tmattio opened this issue · comments
Trying to generate node/globals.d.ts raises the following error:
Error: error: invalid type alias to 'union<'T | {..}>' on line 149, col 22 of globals.d.ts
at /Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:10272:36
at /Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:10347:15
at go$$8 (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:20159:29)
at /Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:3387:12
at tryPickIndexedAux (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:3365:22)
at tryPickIndexed (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:3383:10)
at tryPick (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:3386:10)
at getLiteralFieldsFromType (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:20188:111)
at /Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:20491:23
at /Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:3070:12