@types/levelup
Advanced tools
Comparing version 0.0.29 to 0.0.30
@@ -8,2 +8,10 @@ // Type definitions for LevelUp | ||
import * as leveldown from "leveldown"; | ||
export = levelup; | ||
declare var levelup: levelup.LevelUpConstructor; | ||
declare namespace levelup { | ||
interface CustomEncoding { | ||
@@ -25,3 +33,4 @@ encode(val: any): Buffer| string; | ||
} | ||
interface LevelUp { | ||
interface LevelUpBase<BatchType extends Batch> { | ||
open(callback ?: (error : any) => any): void; | ||
@@ -38,4 +47,4 @@ close(callback ?: (error : any) => any): void; | ||
batch(array: Batch[], options?: { keyEncoding?: Encoding; valueEncoding?: Encoding; sync?: boolean }, callback?: (error?: any)=>any): void; | ||
batch(array: Batch[], callback?: (error?: any)=>any): void; | ||
batch(array: BatchType[], options?: { keyEncoding?: Encoding; valueEncoding?: Encoding; sync?: boolean }, callback?: (error?: any)=>any): void; | ||
batch(array: BatchType[], callback?: (error?: any)=>any): void; | ||
batch():LevelUpChain; | ||
@@ -52,2 +61,4 @@ isOpen():boolean; | ||
type LevelUp = LevelUpBase<Batch> | ||
interface LevelUpChain { | ||
@@ -69,16 +80,8 @@ put(key: any, value: any): LevelUpChain; | ||
valueEncoding?: Encoding; | ||
db?: string | ||
db?: leveldown.Constructor; | ||
} | ||
declare module "levelup" { | ||
function levelup(hostname: string, options?: levelupOptions): LevelUp; | ||
export = levelup; | ||
interface LevelUpConstructor { | ||
(hostname: string, options?: levelupOptions): LevelUp; | ||
} | ||
declare module "leveldown" { | ||
export function destroy(location: string, callback?: Function): void; | ||
export function repair(location: string, callback?: Function): void; | ||
} |
{ | ||
"name": "@types/levelup", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"description": "TypeScript definitions for LevelUp ", | ||
"license": "MIT", | ||
"author": "Bret Little <https://github.com/blittle>, Thiago de Arruda <https://github.com/tarruda>", | ||
"contributors": [ | ||
{ | ||
"name": "Bret Little", | ||
"url": "https://github.com/blittle" | ||
}, | ||
{ | ||
"name": "Thiago de Arruda", | ||
"url": "https://github.com/tarruda" | ||
} | ||
], | ||
"main": "", | ||
@@ -17,3 +26,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "a40f00d1316ac75959bc41911c611d56c85532f28fbd71d9f3d51edd7218beae" | ||
"typesPublisherContentHash": "e7a46c76b7f35acfc3663c0a0e692d130b1c0e77d73b249dfd1556c98f03e5eb", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,9 +8,7 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/levelup | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/levelup | ||
Additional Details | ||
* Last updated: Thu, 01 Dec 2016 01:18:19 GMT | ||
* File structure: MultipleModules | ||
* Library Dependencies: node | ||
* Module Dependencies: none | ||
* Last updated: Fri, 05 May 2017 01:18:21 GMT | ||
* Dependencies: leveldown, node | ||
* Global values: none | ||
@@ -17,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5291
66
17