[redis] hgetall cb to be optional

This commit is contained in:
thephantom
2017-12-20 17:21:52 -05:00
parent bcde7a1be3
commit de7390761f
+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.