diff --git a/types/abstract-iterator.d.ts b/types/abstract-iterator.d.ts index 821a014..7047da6 100644 --- a/types/abstract-iterator.d.ts +++ b/types/abstract-iterator.d.ts @@ -102,10 +102,10 @@ export class AbstractIterator extends CommonIterator): void - nextv (size: number, callback: NodeCallback<[K, V][]>): void - nextv (size: number, options: {}): Promise<[K, V][]> - nextv (size: number): Promise<[K, V][]> + nextv (size: number, options: {}, callback: NodeCallback>): void + nextv (size: number, callback: NodeCallback>): void + nextv (size: number, options: {}): Promise> + nextv (size: number): Promise> /** * Advance repeatedly and get all (remaining) entries as an array, automatically @@ -117,10 +117,10 @@ export class AbstractIterator extends CommonIterator): void - all (callback: NodeCallback<[K, V][]>): void - all (options: {}): Promise<[K, V][]> - all (): Promise<[K, V][]> + all (options: {}, callback: NodeCallback>): void + all (callback: NodeCallback>): void + all (options: {}): Promise> + all (): Promise> /** * Seek to the key closest to {@link target}. Subsequent calls to {@link next()},