# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/level-sublevel/index.d.ts)
````ts
import levelup = require("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: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/levelup](https://npmjs.com/package/@types/levelup)

# Credits
These definitions were written by [Bas Pennings](https://github.com/basp).
