// Type definitions for level 6.0 // Project: https://github.com/Level/level // Definitions by: danielfx90 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { AbstractOptions, ErrorCallback } from "abstract-leveldown"; import EncodingDown from "encoding-down"; import levelup = require("levelup"); declare namespace Level { interface LevelDB extends levelup.LevelUp> { errors: typeof levelup.errors; } interface Constructor { (location: string, options?: AbstractOptions, callback?: ErrorCallback): LevelDB; } } declare const Level: Level.Constructor; export = Level;