# @types/level-sublevel

> TypeScript definitions for level-sublevel

Latest version **0.0.37** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/level-sublevel
pnpm add @types/level-sublevel
yarn add @types/level-sublevel
bun add @types/level-sublevel
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.37 |
| Published | 2025-10-24 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/level-sublevel
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/level-sublevel
- npm.io page: https://npm.io/package/@types/level-sublevel

## Dependencies (1)

- [@types/levelup](https://npm.io/package/@types/levelup.md) ^1

## Recent versions

- 0.0.37 (latest) — 2025-10-24
- 0.0.36 (ts4.5) — 2023-11-07
- 0.0.34 (ts4.3) — 2023-08-30
- 0.0.33 (ts4.0) — 2021-07-08
- 0.0.32 (ts3.3) — 2020-05-15
- 0.0.31 (ts2.1) — 2018-09-18
- 0.0.35 — 2023-10-18
- 0.0.30 — 2017-08-21
- 0.0.29 — 2017-05-05
- 0.0.28 — 2016-09-19
- 0.0.27 — 2016-07-14
- 0.0.26-alpha — 2016-07-08
- 0.0.25-alpha — 2016-07-04
- 0.0.24-alpha — 2016-07-02
- 0.0.23-alpha — 2016-07-01
- … 5 more at https://npm.io/package/@types/level-sublevel/versions

## README

# 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).

---
_Source: https://npm.io/package/@types/level-sublevel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
