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.