caver-js
caver-js copied to clipboard
Need to swap overloaded methods in types/packages/caver-rpc/klay.d.ts
Describe the bug
Need to swap overloaded methods in types/packages/caver-rpc/klay.d.ts so that when receiving parameters via Parameters
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