ocsigen / ts2ocaml

Generate OCaml bindings from TypeScript definitions via the TypeScript compiler API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when generating from `node/assert.d.ts`

tmattio opened this issue · comments

Trying to generate node/assert.d.ts raises the following error:

>             (value: any, message?: string | Error): asserts value;
/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:22968
                        throw new Error("impossible_emitTypeImpl_erased");
                        ^

Error: impossible_emitTypeImpl_erased
    at emitTypeImpl (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:22968:33)
    at /Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:22360:42
    at /Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:3268:63
    at fold (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:3053:23)
    at map (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:3267:18)
    at emitTypeImpl (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:22359:140)
    at mapping$$5 (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:22548:36)
    at /Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:3268:63
    at fold (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:3053:23)
    at map (/Users/tmattio/Workspace/tarides/ts2ocaml/output/ts2ocaml.js:3267:18)