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].
According to the typescript declarations the Promise overloads of
.all()
and.nextv()
ofAbstractKeyIterator
returnPromise<[K]>
. However they should return a promise to an array of typeK
(soPromise<K[]>
orPromise<Array<K>>
). Similarly the Callback versions are declared to takeNodeCallback<[K]>
where it should beNodeCallback<Array<K>>
. The same situation exists forAbstractValueIterator
, only with[V]
where it should beArray<V>
instead of[K]
.