Skip to content

Commit

Permalink
Fix code style of 8e85993
Browse files Browse the repository at this point in the history
Per the `array-type` rule of `typescript-eslint`, only non-simple
types can use `[]`. The rest must use `Array<T>`.
  • Loading branch information
vweevers committed Jan 20, 2024
1 parent 8e85993 commit 9f17757
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions types/abstract-iterator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ export class AbstractIterator<TDatabase, K, V> extends CommonIterator<TDatabase,
* @param options Options (none at the moment, reserved for future use).
* @param callback Error-first callback. If none is provided, a promise is returned.
*/
nextv (size: number, options: {}, callback: NodeCallback<[K, V][]>): 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<Array<[K, V]>>): void
nextv (size: number, callback: NodeCallback<Array<[K, V]>>): void
nextv (size: number, options: {}): Promise<Array<[K, V]>>
nextv (size: number): Promise<Array<[K, V]>>

/**
* Advance repeatedly and get all (remaining) entries as an array, automatically
Expand All @@ -117,10 +117,10 @@ export class AbstractIterator<TDatabase, K, V> extends CommonIterator<TDatabase,
* @param options Options (none at the moment, reserved for future use).
* @param callback Error-first callback. If none is provided, a promise is returned.
*/
all (options: {}, callback: NodeCallback<[K, V][]>): void
all (callback: NodeCallback<[K, V][]>): void
all (options: {}): Promise<[K, V][]>
all (): Promise<[K, V][]>
all (options: {}, callback: NodeCallback<Array<[K, V]>>): void
all (callback: NodeCallback<Array<[K, V]>>): void
all (options: {}): Promise<Array<[K, V]>>
all (): Promise<Array<[K, V]>>

/**
* Seek to the key closest to {@link target}. Subsequent calls to {@link next()},
Expand Down

0 comments on commit 9f17757

Please sign in to comment.