Open slyofzero opened 2 months ago
Please try out beta version which is refactored by ts. You can install it by following command:
npm install tronweb@beta
@Satan-web3 beta version can't listen event ?
@Satan-web3 beta version can't listen event ?
You can now try to listen to it by yourself.
When doing
import TronWeb from "tronweb";
in my TS project, I get the type error saying thatTry `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
When doing
import TronWeb from "tronweb";
in my TS project, I get the type error saying that@types/tronweb
doesn't exist on the npm registry and thus working with this package is not possible in TS.