diff --git a/index.d.ts b/index.d.ts index b2caaec4..56fb04c9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -19,8 +19,6 @@ interface AbstractLevelDOWN): AbstractIterator; - approximateSize(start: K, end: K, cb: (err: any, size: number) => void): void; - [index: string]: any; } @@ -42,7 +40,7 @@ export interface AbstractIteratorOptions { values?: boolean; } -export type Batch = PutBatch | DelBatch +export type Batch = PutBatch | DelBatch export interface PutBatch { type: 'put', @@ -56,6 +54,7 @@ export interface DelBatch { } interface AbstractIterator { + db: any; next(callback: (err: any, key: K, value: V) => void): void; end(callback: (err: any) => void): void; } @@ -82,4 +81,3 @@ interface AbstractChainedBatchConstructor { export const AbstractLevelDOWN: AbstractLevelDOWNConstructor export const AbstractIterator: AbstractIteratorConstructor export const AbstractChainedBatch: AbstractChainedBatchConstructor -export function isLevelDOWN(db: any): boolean;