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
tsc should consider that the type of the callback that may be supplied to web3.eth.accounts.signTransaction corresponds to the implementation's calls of that callback in https://github.com/ethereum/web3.js/blob/1.x/packages/web3-eth-accounts/src/index.js#L127.
tsc
web3.eth.accounts.signTransaction
The typing in https://github.com/ethereum/web3.js/blob/1.x/packages/web3-eth-accounts/types/index.d.ts#L22 results in tsc wanting the callback to have the type () => void.
() => void
Web3.js 1.2.4.
1.2.4
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Expected behavior
tsc
should consider that the type of the callback that may be supplied toweb3.eth.accounts.signTransaction
corresponds to the implementation's calls of that callback in https://github.com/ethereum/web3.js/blob/1.x/packages/web3-eth-accounts/src/index.js#L127.Actual behavior
The typing in https://github.com/ethereum/web3.js/blob/1.x/packages/web3-eth-accounts/types/index.d.ts#L22 results in
tsc
wanting the callback to have the type() => void
.Versions
Web3.js
1.2.4
.The text was updated successfully, but these errors were encountered: