Closed distante closed 3 years ago
Currently we can not import opencrypto into an typescript project with strict checks because the exported module does not have any definitions.
opencrypto
This PR incorpore type definitions and an script createTypes that will update them when called.
createTypes
Pd: If you want, I could update this PR to use husky with a pre commit hook, so each time somebody does a commit, the types are recreated.
Pd2: Sadly the JDDocs does not have info about several params so they are marked as any;
any
Hi Saninn,
thank you for your contribution to OpenCrypto! It is very appreciated. We actually had TypeScript on our roadmap.
Best Regards, Peter Bielak
Currently we can not import
opencrypto
into an typescript project with strict checks because the exported module does not have any definitions.This PR incorpore type definitions and an script
createTypes
that will update them when called.Pd: If you want, I could update this PR to use husky with a pre commit hook, so each time somebody does a commit, the types are recreated.
Pd2: Sadly the JDDocs does not have info about several params so they are marked as
any
;