diff --git a/types/abstract-iterator.d.ts b/types/abstract-iterator.d.ts index 6ac7115..a31ff59 100644 --- a/types/abstract-iterator.d.ts +++ b/types/abstract-iterator.d.ts @@ -153,8 +153,8 @@ export class AbstractKeyIterator extends CommonIterator - nextv (size: number): Promise<[K]> + nextv (size: number, options: {}): Promise + nextv (size: number): Promise /** * Advance repeatedly and get all (remaining) keys as an array, automatically closing @@ -165,8 +165,8 @@ export class AbstractKeyIterator extends CommonIterator - all (): Promise<[K]> + all (options: {}): Promise + all (): Promise /** * Seek to the key closest to {@link target}. Subsequent calls to {@link next()}, @@ -198,8 +198,8 @@ export class AbstractValueIterator extends CommonIterator - nextv (size: number): Promise<[V]> + nextv (size: number, options: {}): Promise + nextv (size: number): Promise /** * Advance repeatedly and get all (remaining) values as an array, automatically closing @@ -210,8 +210,8 @@ export class AbstractValueIterator extends CommonIterator - all (): Promise<[V]> + all (options: {}): Promise + all (): Promise /** * Seek to the key closest to {@link target}. Subsequent calls to {@link next()}, diff --git a/types/abstract-level.d.ts b/types/abstract-level.d.ts index 6b9932b..48a0603 100644 --- a/types/abstract-level.d.ts +++ b/types/abstract-level.d.ts @@ -71,22 +71,22 @@ declare class AbstractLevel /** * Get a value from the database by {@link key}. */ - get (key: KDefault): Promise + get (key: KDefault): Promise get ( key: K, options: AbstractGetOptions - ): Promise + ): Promise /** * Get multiple values from the database by an array of {@link keys}. */ - getMany (keys: KDefault[]): Promise + getMany (keys: KDefault[]): Promise<(VDefault | undefined)[]> getMany ( keys: K[], options: AbstractGetManyOptions - ): Promise + ): Promise<(V | undefined)[]> /** * Add a new entry or overwrite an existing entry.