6.0.3 • Published 6 months ago

@types/level v6.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/level

Summary

This package contains type definitions for level (https://github.com/Level/level).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/level.

index.d.ts

// Type definitions for level 6.0
// Project: https://github.com/Level/level
// Definitions by: danielfx90 <https://github.com/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<K = any, V = any> extends levelup.LevelUp<EncodingDown<K, V>> {
        errors: typeof levelup.errors;
    }
    interface Constructor {
        (location: string, options?: AbstractOptions, callback?: ErrorCallback): LevelDB;
    }
}

declare const Level: Level.Constructor;

export = Level;

Additional Details

Credits

These definitions were written by danielfx90.