From de7390761f2f3bf60e63a2e27a2fa8d097607e62 Mon Sep 17 00:00:00 2001 From: thephantom Date: Wed, 20 Dec 2017 17:18:39 -0500 Subject: [PATCH] [redis] hgetall cb to be optional --- 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 6417afabf9..db0dd122ba 100644 --- a/types/redis/index.d.ts +++ b/types/redis/index.d.ts @@ -472,8 +472,8 @@ export interface Commands { /** * Get all fields and values in a hash. */ - hgetall(key: string, cb: Callback<{ [key: string]: string }>): R; - HGETALL(key: string, cb: Callback<{ [key: string]: string }>): R; + hgetall(key: string, cb?: Callback<{ [key: string]: string }>): R; + HGETALL(key: string, cb?: Callback<{ [key: string]: string }>): R; /** * Increment the integer value of a hash field by the given number.