-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it work with Typescript #99
Comments
@sim4life Could you please add your code example? And the way how you connect to Exonum lib in your app. Thanks for your feedback |
Thanks for getting back. |
@sim4life I tried to repeat your problem, but my connection to Exonum works correctly. I use exonum-client ^0.10.0, typescript ~2.7.2 and angular ^6.0.3 for sample. So if it possible I need more information about your project (What framework do you use Angular or React?) and about versions of Exonum-client and TS. |
I'm getting this error, with a red curly underlining, on Visual Studio Code with TSLint:
|
@sim4life Now we don't have the normal support of ts and we don't have @types/exonum-client. Now you can have a solution to the problem like this microsoft/TypeScript#15031 |
I'm making use of exonum-client using Typescript on NodeJS v10.
I did:
$ npm i @types/node --save
$ npm i exonum-client --save
Now TSLint is giving me this error:
[ts] Could not find a declaration file for module 'exonum-client'. '/Users/username/workarea/node_proj/project/node_modules/exonum-client/lib/index.js' implicitly has an 'any' type. Try 'npm install @types/exonum-client' if it exists or add a new declaration (.d.ts) file containing 'declare module 'exonum-client';'
I'd request that
$ npm i @types/exonum-client
is made available. If not, then kindly supply aexonum-client/index.d.ts
with exports and declarations done properly.The text was updated successfully, but these errors were encountered: