Open maelp opened 6 months ago
Similarly, when trying to compile
const OC = await opencascade({
locateFile: () => opencascadeWasm,
});
there's an error
error TS2554: Expected 0 arguments, but got 1.
(and indeed the .d.ts shows declare function init(): Promise<OpenCascadeInstance>;
)
What is the context of the first one?
For the second one I looked into it at some point - if I remember well, it comes from the upstream project
I just tried to compile this in Typescript:
https://github.com/sgenoud/replicad/blob/main/packages/replicad-app-example/src/cad.js#L4
and that was the error shown
When trying to compile the equivalent of cad.js in typescript I get this error: