You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 reports Expected 0 arguments, but got 1.. Could you please help me to solve this? I think the type is incorrect in the replicad_single.d.ts as the init function indeed accepts one argument.
The text was updated successfully, but these errors were encountered:
I followed those instructions and it works fine in my project, but I'm not using typescript.
Have you tried disabling the typescript checks? if it still doesn't work you may be calling a wrong function. If it does the problem is either in your TS config or project's type annotations. but the former is more likely.
It'd help if you provide a code snippet of what exactly you are calling and what arguments are passed.
without that this seems like a question and not yet an issue, so using github discussions would be more appropriate.
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: