Closed yovanoc closed 2 years ago
There is an issue with the typings, we should add array and not | [] here
| []
handleDelta(symbol: string, deleteLevels: OrderBookLevelState | [] | undefined, updateLevels: OrderBookLevelState | [] | undefined, insertLevels: OrderBookLevelState | [] | undefined, timestamp?: number): OrderBook;
should be
handleDelta(symbol: string, deleteLevels: OrderBookLevelState[] | undefined, updateLevels: OrderBookLevelState[] | undefined, insertLevels: OrderBookLevelState[] | undefined, timestamp?: number): OrderBook;
ah that's a good catch, my bad. Fortunately only a type error - will fix shortly. Thanks for letting me know.
Fixed in v1.1.2. If you notice anything else, please let me know. Thanks!
There is an issue with the typings, we should add array and not
| []
hereshould be