@types/level
TypeScript icon, indicating that this package has built-in type declarations

6.0.3 • Public • Published

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

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.

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/level

    Weekly Downloads

    1,900

    Version

    6.0.3

    License

    MIT

    Unpacked Size

    3.8 kB

    Total Files

    5

    Last publish

    Collaborators

    • types