web3.js
web3.js copied to clipboard
Result of contract method .send is hard to type
If you wanna pass returned Web3PromiEvent it's hard to preserve typing. Maybe makes sense to provide some utility type for that
Also Web3PromiEvent doesn't seem to be exported
@mpetrunic , Web3PromiEvent exported in web3-core package
https://github.com/web3/web3.js/blob/4.x/packages/web3-core/src/web3_promi_event.ts
@mpetrunic ,
Web3PromiEventexported inweb3-corepackage https://github.com/web3/web3.js/blob/4.x/packages/web3-core/src/web3_promi_event.ts
Maybe also add here: https://github.com/web3/web3.js/blob/4.x/packages/web3/src/index.ts#L336 ?