From d05696aa6ea4f488b4013f4dd2c5ac90bc7a5c80 Mon Sep 17 00:00:00 2001 From: Oleg Repin Date: Fri, 8 Dec 2017 18:39:56 +0300 Subject: [PATCH 1/2] [redis] fix BRPOPLPUSH callback --- types/redis/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/redis/index.d.ts b/types/redis/index.d.ts index 00029fe2d3..554cc5bc23 100644 --- a/types/redis/index.d.ts +++ b/types/redis/index.d.ts @@ -250,8 +250,8 @@ export interface Commands { /** * Pop a value from a list, push it to another list and return it; or block until one is available. */ - brpoplpush(source: string, destination: string, timeout: number, cb?: Callback<[string, string]>): R; - BRPOPLPUSH(source: string, destination: string, timeout: number, cb?: Callback<[string, string]>): R; + brpoplpush(source: string, destination: string, timeout: number, cb?: Callback): R; + BRPOPLPUSH(source: string, destination: string, timeout: number, cb?: Callback): R; /** * ADDSLOTS - Assign new hash slots to receiving node. From ad4ac7e06815d5bc2c318c45a6dbbfbc5df27a88 Mon Sep 17 00:00:00 2001 From: Oleg Repin Date: Fri, 8 Dec 2017 19:16:20 +0300 Subject: [PATCH 2/2] [redis] fix BRPOPLPUSH reply can be null --- types/redis/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/redis/index.d.ts b/types/redis/index.d.ts index 554cc5bc23..6417afabf9 100644 --- a/types/redis/index.d.ts +++ b/types/redis/index.d.ts @@ -250,8 +250,8 @@ export interface Commands { /** * Pop a value from a list, push it to another list and return it; or block until one is available. */ - brpoplpush(source: string, destination: string, timeout: number, cb?: Callback): R; - BRPOPLPUSH(source: string, destination: string, timeout: number, cb?: Callback): R; + brpoplpush(source: string, destination: string, timeout: number, cb?: Callback): R; + BRPOPLPUSH(source: string, destination: string, timeout: number, cb?: Callback): R; /** * ADDSLOTS - Assign new hash slots to receiving node.