@types/level-js
Advanced tools
+10
-10
@@ -7,20 +7,20 @@ // Type definitions for level-js 4.0 | ||
| import { AbstractLevelDOWN, AbstractOptions } from 'abstract-leveldown'; | ||
| 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; | ||
| 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; | ||
| readonly prefix?: string | undefined; | ||
| readonly version?: string | number | undefined; | ||
| } | ||
| interface LevelConstructor { | ||
| new (location: string, options?: LevelOptions): Level; | ||
| (location: string, options?: LevelOptions): Level; | ||
| new(location: string, options?: LevelOptions): Level; | ||
| (location: string, options?: LevelOptions): Level; | ||
| } | ||
@@ -27,0 +27,0 @@ |
| { | ||
| "name": "@types/level-js", | ||
| "version": "4.0.2", | ||
| "version": "4.0.3", | ||
| "description": "TypeScript definitions for level-js", | ||
@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/level-js", | ||
| }, | ||
| "typesPublisherContentHash": "320af8076ec76e146bc51cb59376b4154b98c54b6df2bca669fd9a121f943728", | ||
| "typeScriptVersion": "3.6" | ||
| "typesPublisherContentHash": "fba8180e25bd38063aa14383e74d569903780aa9bd7289cc72e13ed0e8b95cb8", | ||
| "typeScriptVersion": "4.3" | ||
| } |
+11
-11
@@ -17,20 +17,20 @@ # Installation | ||
| import { AbstractLevelDOWN, AbstractOptions } from 'abstract-leveldown'; | ||
| 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; | ||
| 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; | ||
| readonly prefix?: string | undefined; | ||
| readonly version?: string | number | undefined; | ||
| } | ||
| interface LevelConstructor { | ||
| new (location: string, options?: LevelOptions): Level; | ||
| (location: string, options?: LevelOptions): Level; | ||
| new(location: string, options?: LevelOptions): Level; | ||
| (location: string, options?: LevelOptions): Level; | ||
| } | ||
@@ -44,3 +44,3 @@ | ||
| ### Additional Details | ||
| * Last updated: Thu, 08 Jul 2021 16:23:42 GMT | ||
| * Last updated: Wed, 30 Aug 2023 19:35:03 GMT | ||
| * Dependencies: [@types/abstract-leveldown](https://npmjs.com/package/@types/abstract-leveldown) | ||
@@ -47,0 +47,0 @@ * Global values: none |
4568
0.75%