# @types/level-js

> TypeScript definitions for level-js

Latest version **4.0.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.5 |
| Published | 2023-11-07 |
| First published | 2019-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/abstract-leveldown](https://npm.io/package/@types/abstract-leveldown.md) *

## Recent versions

- 4.0.5 (latest) — 2023-11-07
- 4.0.3 (ts4.3) — 2023-08-30
- 4.0.2 (ts3.6) — 2021-07-08
- 4.0.1 (ts2.3) — 2019-06-19
- 4.0.4 — 2023-10-18
- 4.0.0 — 2019-06-16

## README

# Installation
> `npm install --save @types/level-js`

# Summary
This package contains type definitions for level-js (https://github.com/Level/level-js).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/level-js.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/level-js/index.d.ts)
````ts
import { AbstractLevelDOWN, AbstractOptions } from "abstract-leveldown";

interface Level extends AbstractLevelDOWN {
    readonly location: string;
    readonly prefix: string;
    readonly version: string | number;
    destroy(location: string, cb: (err: Error | undefined) => void): void;
    destroy(location: string, prefix: string, cb: (err: Error | undefined) => void): void;
}

interface LevelOptions {
    readonly prefix?: string | undefined;
    readonly version?: string | number | undefined;
}

interface LevelConstructor {
    new(location: string, options?: LevelOptions): Level;
    (location: string, options?: LevelOptions): Level;
}

declare const Level: LevelConstructor;
export = Level;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:38 GMT
 * Dependencies: [@types/abstract-leveldown](https://npmjs.com/package/@types/abstract-leveldown)

# Credits
These definitions were written by [Daniel Byrne](https://github.com/danwbyrne).

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