UNPKG

492 BTypeScriptView Raw
1import { AbstractOptions, ErrorCallback } from "abstract-leveldown";
2
3import EncodingDown from "encoding-down";
4
5import levelup = require("levelup");
6
7declare namespace Level {
8 interface LevelDB<K = any, V = any> extends levelup.LevelUp<EncodingDown<K, V>> {
9 errors: typeof levelup.errors;
10 }
11 interface Constructor {
12 (location: string, options?: AbstractOptions, callback?: ErrorCallback): LevelDB;
13 }
14}
15
16declare const Level: Level.Constructor;
17
18export = Level;