binance-api-node icon indicating copy to clipboard operation
binance-api-node copied to clipboard

futuresCancelBatchOrders lacks return-type annotation

Open bennycode opened this issue 10 months ago • 3 comments

The PR https://github.com/ViewBlock/binance-api-node/pull/586 introduced type definitions for futuresCancelBatchOrders. 🚀

Unfortunately, the function is missing a return-type definition which becomes a problem when trying to use it with strictly typed code:

binance-api-node/index.d.ts:666:5 - error TS7010: 'futuresCancelBatchOrders', which lacks return-type annotation, implicitly has an 'any' return type.

@jinusean do you know what the function returns or is it just Promise<void>?

P.S. It's funny that the error occurs in line 666. 😈

bennycode avatar Aug 08 '23 11:08 bennycode