Fixed hmset allowing support for data as object

This commit is contained in:
Pietro Paolo Vismara
2017-12-06 10:55:37 +01:00
committed by GitHub
parent 7f0c54c130
commit fc72b3070d
+5 -3
View File
@@ -239,9 +239,11 @@ declare namespace IORedis {
hsetnx(key: string, field: string, value: any): Promise<0 | 1>;
hget(key: string, field: string, callback: (err: Error, res: string) => void): void;
hget(key: string, field: string): Promise<string>;
hmset(key: string, field: string, value: any, ...args: string[]): any;
hget(key: string, field: string): Promise<string>;
hmset(key: string, field: string, value: any, ...args: string[]): Promise<0 | 1>;
hmset(key: string, data: any, callback: (err: Error, res: 0 | 1) => void): void;
hmset(key: string, data: any): Promise<0 | 1>;
hmget(key: string, field: string, ...fields: string[]): any;