update missing ioredis/onPossiblyUnhandledRejection

This commit is contained in:
Trung Dang
2018-02-19 00:23:33 +07:00
parent 628c63919c
commit f61e27785e
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -48,6 +48,7 @@ declare namespace IORedis {
}
interface Redis extends NodeJS.EventEmitter, Commander {
Promise: typeof Promise;
status: string;
connect(callback?: () => void): Promise<any>;
disconnect(): void;
+4 -1
View File
@@ -105,7 +105,10 @@ redis.multi([
// results = [[null, 'OK'], [null, 'bar']]
});
const keys = [ 'foo', 'bar' ];
redis.Promise.onPossiblyUnhandledRejection((error) => {
});
const keys = ['foo', 'bar'];
redis.mget(...keys);
new Redis.Cluster([