Need to swap overloaded methods in types/packages/caver-rpc/klay.d.ts
Closed this issue · 0 comments
mirageN1349 commented
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
Environment (please complete the following information)
- caver-js 1.8.1
- OS macos monterey 12.3.1