abstract-level icon indicating copy to clipboard operation
abstract-level copied to clipboard

Wrong Type declarations for .all() and .nextv() methods AbstractKeyIterator and AbstractValueIterator

Open bredthau opened this issue 1 year ago • 0 comments

According to the typescript declarations the Promise overloads of .all() and .nextv() of AbstractKeyIterator return Promise<[K]>. However they should return a promise to an array of type K (so Promise<K[]> or Promise<Array<K>>). Similarly the Callback versions are declared to take NodeCallback<[K]> where it should be NodeCallback<Array<K>>. The same situation exists for AbstractValueIterator, only with [V] where it should be Array<V> instead of [K].

bredthau avatar Apr 20 '24 20:04 bredthau