agsh / onvif

ONVIF node.js implementation
http://agsh.github.io/onvif/
MIT License
679 stars 230 forks source link

fix(209): add type class field to generate typescript definitions #286

Closed agsh closed 1 week ago

agsh commented 1 year ago

For the npx -p typescript tsc lib/cam.js --declaration --allowJs --emitDeclarationOnly --outDir types command. Maybe types will be added in the master for v.0.6, but I'm still working on another branch which is written in ts

grreb commented 1 year ago

Well it does then compile, but it generates a duplicate export of Cam, and in the other files Cam is either typed as Class or any. Seems that this requires more work....

agsh commented 1 week ago

Work continues https://github.com/agsh/onvif/pull/221