Narcissistic Preening Monarch

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

    0.0.33 • Public • Published

    Installation

    npm install --save @types/level-sublevel

    Summary

    This package contains type definitions for level-sublevel (https://github.com/dominictarr/level-sublevel).

    Details

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

    index.d.ts

    // Type definitions for level-sublevel
    // Project: https://github.com/dominictarr/level-sublevel
    // Definitions by: Bas Pennings <https://github.com/basp>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    import * as levelup from "levelup";
    
    export = sublevel
    
    declare var sublevel: sublevel.Constructor;
    
    declare namespace sublevel {
    interface Hook {
        (ch: any, add: (op: Batch|boolean) => void): void;
    }
    
    interface Batch extends levelup.Batch {
        prefix?: Sublevel | undefined;
    }
    
    interface Sublevel extends levelup.LevelUpBase<Batch> {
        sublevel(key: string): Sublevel;
        pre(hook: Hook): Function;
    }
    
    type Constructor = (levelup: levelup.LevelUp) => Sublevel
    }

    Additional Details

    • Last updated: Thu, 08 Jul 2021 16:23:42 GMT
    • Dependencies: @types/levelup
    • Global values: none

    Credits

    These definitions were written by Bas Pennings.

    Keywords

    none

    Install

    npm i @types/level-sublevel

    DownloadsWeekly Downloads

    230

    Version

    0.0.33

    License

    MIT

    Unpacked Size

    4.07 kB

    Total Files

    4

    Last publish

    Collaborators

    • types