You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I’ve noticed that some types returned by methods aren’t exported as types, such as Web3Account or Signature (ReturnType<typeof account.sign>). This makes it more difficult to structure larger TypeScript codebases effectively. Please see the example below:
// this is not possibleimport{Signature,Web3Account}from"web3"functionprocessSignature(signature: Signature){// Do something with the signature}functionprepareAndSignTransaction(account: Web3Account,to: Address){// Prepare the transaction}
The text was updated successfully, but these errors were encountered:
Hi, I’ve noticed that some types returned by methods aren’t exported as types, such as
Web3Account
orSignature
(ReturnType<typeof account.sign>
). This makes it more difficult to structure larger TypeScript codebases effectively. Please see the example below:The text was updated successfully, but these errors were encountered: