Native Import in NodeJS do not provide any Typing by default.
src/1-getting-started/6_object_wrap/node-addon-api/myobject.cc register a class MyObject having a plusOne method.
but coding in addon.js will not give access to any typing.
My I open a PR to add d.ts
that contains somthink like:
class MyObject {
public plusOne(): number;
public value(): number;
public multiply(num?: number): number;
}
Hi,
Native Import in NodeJS do not provide any Typing by default.
src/1-getting-started/6_object_wrap/node-addon-api/myobject.cc
register a classMyObject
having aplusOne
method. but coding inaddon.js
will not give access to any typing.My I open a PR to add d.ts that contains somthink like: