abstract-leveldown
Advanced tools
Comparing version
interface AbstractLevelDOWN<K=any, V=any, O=any, PO=any, GO=any, DO=any, IO=any, BO=any> { | ||
open(callback: (err?: any) => void); | ||
open(options: O, callback: (err?: any) => void); | ||
open(callback: (err?: any) => void): void; | ||
open(options: O, callback: (err?: any) => void): void; | ||
close(callback: (err?: any) => void); | ||
close(callback: (err?: any) => void): void; | ||
get(key: K, callback: (err, value: V) => any); | ||
get(key: K, options: GO, callback: (err, value: V) => any); | ||
get(key: K, callback: (err: any, value: V) => any): void; | ||
get(key: K, options: GO, callback: (err: any, value: V) => any): void; | ||
put(key: K, value: V, callback: (err: any) => any); | ||
put(key: K, value: V, options: PO, callback: (err: any) => any); | ||
put(key: K, value: V, callback: (err: any) => any): void; | ||
put(key: K, value: V, options: PO, callback: (err: any) => any): void; | ||
del(key: K, callback: (err: any) => any); | ||
del(key: K, options: DO, callback: (err: any) => any); | ||
del(key: K, callback: (err: any) => any): void; | ||
del(key: K, options: DO, callback: (err: any) => any): void; | ||
batch(): AbstractChainedBatch<K, V, BO>; | ||
batch(array: Batch<K, V>[], callback: (err: any) => any); | ||
batch(array: Batch<K, V>[], options: BO, callback: (err: any) => any); | ||
batch(array: Batch<K, V>[], callback: (err: any) => any): AbstractChainedBatch<K, V, BO>; | ||
batch(array: Batch<K, V>[], options: BO, callback: (err: any) => any): AbstractChainedBatch<K, V, BO>; | ||
@@ -85,2 +85,2 @@ iterator(options?: IO & AbstractIteratorOptions<K>): AbstractIterator<K, V>; | ||
export const AbstractChainedBatch: AbstractChainedBatchConstructor | ||
export function isLevelDOWN(db: any): boolean; | ||
export function isLevelDOWN(db: any): boolean; |
{ | ||
"name": "abstract-leveldown", | ||
"description": "An abstract prototype matching the LevelDOWN API", | ||
"version": "2.7.2", | ||
"version": "3.0.0", | ||
"contributors": [ | ||
@@ -47,3 +47,6 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)", | ||
}, | ||
"license": "MIT" | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=4" | ||
} | ||
} |
@@ -7,2 +7,3 @@ # abstract-leveldown | ||
[](https://www.npmjs.com/package/abstract-leveldown) | ||
 | ||
[](http://travis-ci.org/Level/abstract-leveldown) | ||
@@ -9,0 +10,0 @@ [](https://david-dm.org/level/abstract-leveldown) |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
134449
0.18%28
3.7%3161
0.03%159
0.63%1
Infinity%