-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init function from replicad_single.js expects 0 arguments #54
Comments
I followed those instructions and it works fine in my project, but I'm not using typescript. It'd help if you provide a code snippet of what exactly you are calling and what arguments are passed. |
I have updated the underlying library - can you confirm if it fixes your issue? |
No, it does not fix the issue. The TypeScript definition of the init function is still the same - without any paramater. See https://github.com/sgenoud/replicad/blob/main/packages/replicad-opencascadejs/src/replicad_single.d.ts#L7165 It seems to be a bug in opencascadejs, so I should probably report there. |
According to https://replicad.xyz/docs/use-as-a-library OpenCascadeInstance should be created by calling the init function exported from
replicad-opencascadejs/src/replicad_single.js
with single argument (defining locateFile function). However, TypeScript reportsExpected 0 arguments, but got 1.
. Could you please help me to solve this? I think the type is incorrect in thereplicad_single.d.ts
as the init function indeed accepts one argument.The text was updated successfully, but these errors were encountered: