From 9f17757f103186195673ccb12f36aa63c9774f3a Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sat, 20 Jan 2024 15:57:55 +0100 Subject: [PATCH] Fix code style of 8e85993 Per the `array-type` rule of `typescript-eslint`, only non-simple types can use `[]`. The rest must use `Array`. --- types/abstract-iterator.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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()},