We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The pattern used in that file looks like:
https://github.com/ethereum/web3.js/blob/3e10668745ddbff8c785351f36754343ec680acf/packages/web3-eth/types/index.d.ts#L295-L298
This passes Web3's types tests but as reported in comment #3248 comment, TS complains when making an assignment like:
// Does not compile const a: TransactionReceipt = await sendTransaction(...) // This is ok though.. const a = await sendTransaction(...)
There's a guide to defining Promise error types here.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The pattern used in that file looks like:
https://github.com/ethereum/web3.js/blob/3e10668745ddbff8c785351f36754343ec680acf/packages/web3-eth/types/index.d.ts#L295-L298
This passes Web3's types tests but as reported in comment #3248 comment, TS complains when making an assignment like:
There's a guide to defining Promise error types here.
The text was updated successfully, but these errors were encountered: