tojocky / node-printer

Native node.js printer
1.53k stars 441 forks source link

Adds Typescript definitions #280

Closed goooseman closed 3 years ago

goooseman commented 4 years ago

Adds index.d.ts with Typescript typings for the library.

index.d.ts is the default definitions locations. If the file is in the project root and is named index.d.ts then there is no need to modify package.json.

angelod1as commented 3 years ago

Isn't there a way to better specify the Objects?

goooseman commented 3 years ago

of course, but I do not know what are the returned objects

if you provide me with the schema of the returned objects, I can update the PR

tojocky commented 3 years ago

thank you!