JSPM

@types/level

6.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3149
  • Score
    100M100P100Q18688F
  • License MIT

TypeScript definitions for level

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/level) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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.