@types/redis
Advanced tools
Comparing version 2.6.1 to 2.8.0
@@ -1,4 +0,8 @@ | ||
// Type definitions for redis 2.6.0 | ||
// Type definitions for redis 2.8 | ||
// Project: https://github.com/mranney/node_redis | ||
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>, Peter Harris <https://github.com/CodeAnimal>, TANAKA Koichi <https://github.com/MugeSo> | ||
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz> | ||
// Peter Harris <https://github.com/CodeAnimal> | ||
// TANAKA Koichi <https://github.com/MugeSo> | ||
// Stuart Schechter <https://github.com/UppaJung> | ||
// Junyoung Choi <https://github.com/Rokt33r> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -20,5 +24,3 @@ | ||
export interface RetryStrategy { | ||
(options: RetryStrategyOptions): number | Error; | ||
} | ||
export type RetryStrategy = (options: RetryStrategyOptions) => number | Error; | ||
@@ -51,5 +53,3 @@ export interface ClientOpts { | ||
export interface Callback<T> { | ||
(err: Error | null, reply: T): void; | ||
} | ||
export type Callback<T> = (err: Error | null, reply: T) => void; | ||
@@ -62,5 +62,2 @@ export interface ServerInfo { | ||
export interface OverloadedCommand<T, U, R> { | ||
(args: T[], cb?: Callback<U>): R; | ||
(arg: T, args: T[], cb?: Callback<U>): R; | ||
(arg1: T, arg2: T, arg3: T, arg4: T, arg5: T, arg6: T, cb?: Callback<U>): R; | ||
@@ -70,10 +67,8 @@ (arg1: T, arg2: T, arg3: T, arg4: T, arg5: T, cb?: Callback<U>): R; | ||
(arg1: T, arg2: T, arg3: T, cb?: Callback<U>): R; | ||
(arg1: T, arg2: T, cb?: Callback<U>): R; | ||
(arg1: T, cb?: Callback<U>): R; | ||
(...args: (T | Callback<U>)[]): R; | ||
(arg1: T, arg2: T | T[], cb?: Callback<U>): R; | ||
(arg1: T | T[], cb?: Callback<U>): R; | ||
(...args: Array<T | Callback<U>>): R; | ||
} | ||
export interface OverloadedKeyCommand<T, U, R> { | ||
(key: string, args: T[], cb?: Callback<U>): R; | ||
(key: string, arg1: T, arg2: T, arg3: T, arg4: T, arg5: T, arg6: T, cb?: Callback<U>): R; | ||
@@ -84,10 +79,8 @@ (key: string, arg1: T, arg2: T, arg3: T, arg4: T, arg5: T, cb?: Callback<U>): R; | ||
(key: string, arg1: T, arg2: T, cb?: Callback<U>): R; | ||
(key: string, arg1: T, cb?: Callback<U>): R; | ||
(key: string, ...args: (T | Callback<U>)[]): R; | ||
(...args: (string | T | Callback<U>)[]): R; | ||
(key: string, arg1: T| T[], cb?: Callback<U>): R; | ||
(key: string, ...args: Array<T | Callback<U>>): R; | ||
(...args: Array<string | T | Callback<U>>): R; | ||
} | ||
export interface OverloadedListCommand<T, U, R> { | ||
(args: T[], cb?: Callback<U>): R; | ||
(arg1: T, arg2: T, arg3: T, arg4: T, arg5: T, arg6: T, cb?: Callback<U>): R; | ||
@@ -98,9 +91,7 @@ (arg1: T, arg2: T, arg3: T, arg4: T, arg5: T, cb?: Callback<U>): R; | ||
(arg1: T, arg2: T, cb?: Callback<U>): R; | ||
(arg1: T, cb?: Callback<U>): R; | ||
(...args: (T | Callback<U>)[]): R; | ||
(arg1: T | T[], cb?: Callback<U>): R; | ||
(...args: Array<T | Callback<U>>): R; | ||
} | ||
export interface OverloadedSetCommand<T, U, R> { | ||
(key: string, args: { [key: string]: T } | T[], cb?: Callback<U>): R; | ||
(key: string, arg1: T, arg2: T, arg3: T, arg4: T, arg5: T, arg6: T, cb?: Callback<U>): R; | ||
@@ -111,10 +102,7 @@ (key: string, arg1: T, arg2: T, arg3: T, arg4: T, arg5: T, cb?: Callback<U>): R; | ||
(key: string, arg1: T, arg2: T, cb?: Callback<U>): R; | ||
(key: string, arg1: T, cb?: Callback<U>): R; | ||
(key: string, ...args: (T | Callback<U>)[]): R; | ||
(key: string, arg1: T | { [key: string]: T } | T[], cb?: Callback<U>): R; | ||
(key: string, ...args: Array<T | Callback<U>>): R; | ||
} | ||
export interface OverloadedLastCommand<T1, T2, U, R> { | ||
(args: (T1 | T2)[], cb?: Callback<U>): R; | ||
(arg: T1, args: (T1 | T2)[], cb?: Callback<U>): R; | ||
(arg1: T1, arg2: T1, arg3: T1, arg4: T1, arg5: T1, arg6: T2, cb?: Callback<U>): R; | ||
@@ -124,4 +112,5 @@ (arg1: T1, arg2: T1, arg3: T1, arg4: T1, arg5: T2, cb?: Callback<U>): R; | ||
(arg1: T1, arg2: T1, arg3: T2, cb?: Callback<U>): R; | ||
(arg1: T1, arg2: T2, cb?: Callback<U>): R; | ||
(...args: (T1 | T2 | Callback<U>)[]): R; | ||
(arg1: T1, arg2: T2 | Array<T1 | T2>, cb?: Callback<U>): R; | ||
(args: Array<T1 | T2>, cb?: Callback<U>): R; | ||
(...args: Array<T1 | T2 | Callback<U>>): R; | ||
} | ||
@@ -240,7 +229,7 @@ | ||
bitop(operation: string, destkey: string, key: string, cb?: Callback<number>): R; | ||
bitop(operation: string, destkey: string, ...args: (string | Callback<number>)[]): R; | ||
bitop(operation: string, destkey: string, ...args: Array<string | Callback<number>>): R; | ||
BITOP(operation: string, destkey: string, key1: string, key2: string, key3: string, cb?: Callback<number>): R; | ||
BITOP(operation: string, destkey: string, key1: string, key2: string, cb?: Callback<number>): R; | ||
BITOP(operation: string, destkey: string, key: string, cb?: Callback<number>): R; | ||
BITOP(operation: string, destkey: string, ...args: (string | Callback<number>)[]): R; | ||
BITOP(operation: string, destkey: string, ...args: Array<string | Callback<number>>): R; | ||
@@ -554,4 +543,4 @@ /** | ||
*/ | ||
incr(key: string, cb?: Callback<string[]>): R; | ||
INCR(key: string, cb?: Callback<string[]>): R; | ||
incr(key: string, cb?: Callback<number>): R; | ||
INCR(key: string, cb?: Callback<number>): R; | ||
@@ -561,4 +550,4 @@ /** | ||
*/ | ||
incrby(key: string, increment: number, cb?: Callback<string[]>): R; | ||
INCRBY(key: string, increment: number, cb?: Callback<string[]>): R; | ||
incrby(key: string, increment: number, cb?: Callback<number>): R; | ||
INCRBY(key: string, increment: number, cb?: Callback<number>): R; | ||
@@ -568,4 +557,4 @@ /** | ||
*/ | ||
incrbyfloat(key: string, increment: number, cb?: Callback<string[]>): R; | ||
INCRBYFLOAT(key: string, increment: number, cb?: Callback<string[]>): R; | ||
incrbyfloat(key: string, increment: number, cb?: Callback<number>): R; | ||
INCRBYFLOAT(key: string, increment: number, cb?: Callback<number>): R; | ||
@@ -1099,4 +1088,4 @@ /** | ||
*/ | ||
zrank(key: string, member: string, cb?: Callback<number | void>): R; | ||
ZRANK(key: string, member: string, cb?: Callback<number | void>): R; | ||
zrank(key: string, member: string, cb?: Callback<number | undefined>): R; | ||
ZRANK(key: string, member: string, cb?: Callback<number | undefined>): R; | ||
@@ -1150,4 +1139,4 @@ /** | ||
*/ | ||
zrevrank(key: string, member: string, cb?: Callback<number | void>): R; | ||
ZREVRANK(key: string, member: string, cb?: Callback<number | void>): R; | ||
zrevrank(key: string, member: string, cb?: Callback<number | undefined>): R; | ||
ZREVRANK(key: string, member: string, cb?: Callback<number | undefined>): R; | ||
@@ -1207,10 +1196,6 @@ /** | ||
on(event: 'message', listener: (channel: string, message: string) => void): this; | ||
on(event: 'pmessage', listener: (pattern: string, channel: string, message: string) => void): this; | ||
on(event: 'message_buffer', listener: (channel: string, message: string) => void): this; | ||
on(event: 'pmessage_buffer', listener: (pattern: string, channel: string, message: string) => void): this; | ||
on(event: 'subscribe', listener: (channel: string, count: number) => void): this; | ||
on(event: 'psubscribe', listener: (pattern: string, count: number) => void): this; | ||
on(event: 'unsubscribe', listener: (channel: string, count: number) => void): this; | ||
on(event: 'punsubscribe', listener: (pattern: string, count: number) => void): this; | ||
on(event: 'message' | 'message_buffer', listener: (channel: string, message: string) => void): this; | ||
on(event: 'pmessage' | 'pmessage_buffer', listener: (pattern: string, channel: string, message: string) => void): this; | ||
on(event: 'subscribe' | 'unsubscribe', listener: (channel: string, count: number) => void): this; | ||
on(event: 'psubscribe' | 'punsubscribe', listener: (pattern: string, count: number) => void): this; | ||
on(event: string, listener: (...args: any[]) => void): this; | ||
@@ -1264,2 +1249,2 @@ | ||
export function print(err: Error | void, reply: any): void; | ||
export function print(err: Error | undefined, reply: any): void; |
{ | ||
"name": "@types/redis", | ||
"version": "2.6.1", | ||
"version": "2.8.0", | ||
"description": "TypeScript definitions for redis", | ||
@@ -21,2 +21,12 @@ "license": "MIT", | ||
"githubUsername": "MugeSo" | ||
}, | ||
{ | ||
"name": "Stuart Schechter", | ||
"url": "https://github.com/UppaJung", | ||
"githubUsername": "UppaJung" | ||
}, | ||
{ | ||
"name": "Junyoung Choi", | ||
"url": "https://github.com/Rokt33r", | ||
"githubUsername": "Rokt33r" | ||
} | ||
@@ -33,4 +43,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "987c693ed68568e09790b9345fc41cdcd195705afae909a64b8c51d764ffc9de", | ||
"typesPublisherContentHash": "228539ba1671a5849f15d44d5c82c919ee482b18ceaa06be1f74f31736a75199", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 13 Oct 2017 10:31:50 GMT | ||
* Last updated: Wed, 25 Oct 2017 16:18:57 GMT | ||
* Dependencies: events, stream, node | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Carlos Ballesteros Velasco <https://github.com/soywiz>, Peter Harris <https://github.com/CodeAnimal>, TANAKA Koichi <https://github.com/MugeSo>. | ||
These definitions were written by Carlos Ballesteros Velasco <https://github.com/soywiz>, Peter Harris <https://github.com/CodeAnimal>, TANAKA Koichi <https://github.com/MugeSo>, Stuart Schechter <https://github.com/UppaJung>, Junyoung Choi <https://github.com/Rokt33r>. |
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
50846
1043