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
I find myself using this pattern all the time. The problem is that balanceResp.result and tokenResp.result both have the same type - result: bigint | 0x${string}. This makes sense considering the ABI, but is there a way I can make the types stricter such that typescript can infer balanceResp.result is of type bigint and tokenResp.result is of type Address
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I find myself using this pattern all the time. The problem is that
balanceResp.result
andtokenResp.result
both have the same type -result: bigint | 0x${string}
. This makes sense considering the ABI, but is there a way I can make the types stricter such that typescript can inferbalanceResp.result
is of typebigint
andtokenResp.result
is of typeAddress
Beta Was this translation helpful? Give feedback.
All reactions