onvif icon indicating copy to clipboard operation
onvif copied to clipboard

TypeScript declaration

Open namnm opened this issue 4 years ago • 5 comments

Hi, thanks for this great library. We can add TypeScript declaration to have the type safety cover.

namnm avatar Sep 20 '21 08:09 namnm

Absolutely @namnm! A PR is welcome 🙂

chriswiggins avatar Sep 20 '21 09:09 chriswiggins

We already have the jsdoc type system, I think we can use a tool to automatically convert the jsdoc to typescript declaration. Something like: https://github.com/brettle/jsdoc-to-typescript-declaration

namnm avatar Sep 24 '21 10:09 namnm

@namnm Hi! You can look here and help to translate the old code to the typescript, to refuse declarations. I'm working on it but haven't get much time :cry: https://github.com/agsh/onvif/tree/v1/src

agsh avatar Feb 15 '22 03:02 agsh