Skip to content
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

Tronweb version 5.3.2 doesn't ship with types #548

Open
slyofzero opened this issue Aug 21, 2024 · 4 comments
Open

Tronweb version 5.3.2 doesn't ship with types #548

slyofzero opened this issue Aug 21, 2024 · 4 comments

Comments

@slyofzero
Copy link

When doing import TronWeb from "tronweb"; in my TS project, I get the type error saying that

Try `npm i --save-dev @types/tronweb` if it exists or add a new declaration (.d.ts) file containing `declare module 'tronweb';`

@types/tronweb doesn't exist on the npm registry and thus working with this package is not possible in TS.

@Satan-web3
Copy link
Contributor

Please try out beta version which is refactored by ts. You can install it by following command:

npm install tronweb@beta

@tranphuocanh0207
Copy link

@Satan-web3 beta version can't listen event ?

@Satan-web3
Copy link
Contributor

@Satan-web3 beta version can't listen event ?

You can now try to listen to it by yourself.

@daochild
Copy link

When doing import TronWeb from "tronweb"; in my TS project, I get the type error saying that

Try `npm i --save-dev @types/tronweb` if it exists or add a new declaration (.d.ts) file containing `declare module 'tronweb';`

@types/tronweb doesn't exist on the npm registry and thus working with this package is not possible in TS.

Use this package
https://www.npmjs.com/package/@daochild/tronweb-typescript/v/1.2.105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants