Closed danvk closed 5 years ago
Linked with RH3DM-53
We do generate typescript declarations. Are you getting rhino3dm.js from npm?
Here is a discussion of the topic https://discourse.mcneel.com/t/rhino3dm-js-typescript-declaration-file/87468
Closed via RH3DM-53
Looks like I was just on an old version. Sorry! And thanks for the types :)
Hey! I am using Rhino3dm in a typescript ap and I am having trouble with the fromByteArray method, indeed, it looks like it is not correctly typed, the input is missing. https://mcneel.github.io/rhino3dm/javascript/api/File3dm.html#.fromByteArray
I'm using the rhino3dm.js library in a TypeScript project. It would be amazing if McNeel could generate TypeScript type declarations for this library, either bundled with the package or on DefinitelyTyped.
I've written some simple declarations for the
File3dm
class (included below), but something official would be much better, especially because the API docs are not always clear about the parameter/return types for methods.