UNPKG

@types/level

Version:
38 lines (27 loc) 1.27 kB
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/level/index.d.ts) ````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 * Last updated: Tue, 07 Nov 2023 09:09:38 GMT * Dependencies: [@types/abstract-leveldown](https://npmjs.com/package/@types/abstract-leveldown), [@types/encoding-down](https://npmjs.com/package/@types/encoding-down), [@types/levelup](https://npmjs.com/package/@types/levelup) # Credits These definitions were written by [danielfx90](https://github.com/danielfx90).