caver-js icon indicating copy to clipboard operation
caver-js copied to clipboard

Need to swap overloaded methods in types/packages/caver-rpc/klay.d.ts

Open mirageN1349 opened this issue 2 years ago • 0 comments

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 image image image

Environment (please complete the following information)

  • caver-js 1.8.1
  • OS macos monterey 12.3.1

mirageN1349 avatar May 14 '22 07:05 mirageN1349