uport-project / ethr-did

Create ethr DIDs
Apache License 2.0
259 stars 53 forks source link

Could not find a declaration file for module 'ethr-did' #51

Closed strawberry-code closed 3 years ago

strawberry-code commented 3 years ago

Is your feature request related to a problem? Please describe. Cannot use this npm module on a React Native typescript-based project. Could not instantiate let issuer = new EthrDID({address: xxx, privateKey: yyy}).

Getting this warning from IDE:

TS7016: Could not find a declaration file for module 'ethr-did'. '/Users/shinigami/pwc/github/io-app/node_modules/ethr-did/lib/index.js' implicitly has an 'any' type.   Try `npm install @types/ethr-did` if it exists or add a new declaration (.d.ts) file containing `declare module 'ethr-did';`

Describe the solution you'd like I would be able to install ethr-did by using yarn: yarn add ethr-did and be able to use it in a React-Native typescript-based project.

May this be helpful.

uport-automation-bot commented 3 years ago

:tada: This issue has been resolved in version 2.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: