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
Describe the bug
Need to swap overloaded methods in types/packages/caver-rpc/klay.d.ts so that when receiving parameters via Parameters, an overloaded method with fewer required arguments is returned
How to reproduce
type Type = Parameters<keyof Klay['getBalance']>
When calling the getBalance function with these parameters, the obligatory blockNumber argument will be required, although it is not needed
Expected behavior
Type "Type" must return only required arguments
Attachments
Environment (please complete the following information)
caver-js 1.8.1
OS macos monterey 12.3.1
The text was updated successfully, but these errors were encountered:
mirageN1349
changed the title
Need to swap overloaded methods in types/packages/caver-rpc/klay.d.ts so that when receiving parameters via Parameters<fn>, an overloaded method with fewer required arguments is returned
Need to swap overloaded methods in types/packages/caver-rpc/klay.d.ts
May 14, 2022
Describe the bug
Need to swap overloaded methods in types/packages/caver-rpc/klay.d.ts so that when receiving parameters via Parameters, an overloaded method with fewer required arguments is returned
How to reproduce
type Type = Parameters<keyof Klay['getBalance']>
When calling the getBalance function with these parameters, the obligatory blockNumber argument will be required, although it is not needed
Expected behavior
Type "Type" must return only required arguments
Attachments
Environment (please complete the following information)
The text was updated successfully, but these errors were encountered: