Merge pull request #22399 from phanxgames/master

[redis] hgetall cb to be optional
This commit is contained in:
Paul van Brenk
2017-12-28 13:05:38 -08:00
committed by GitHub
+2 -2
View File
@@ -472,8 +472,8 @@ export interface Commands<R> {
/**
* 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.