Import redis definitions from @types (#16215)

This commit is contained in:
Blake Embrey
2017-06-01 10:41:59 -04:00
committed by Andy
parent 68221a8e5c
commit 7437e70f27
2 changed files with 1207 additions and 643 deletions

1838
types/redis/index.d.ts vendored

File diff suppressed because it is too large Load Diff

View File

@@ -61,7 +61,7 @@ client.end(true);
// Connection (http://redis.io/commands#connection)
client.auth(str, resCallback);
client.ping(numCallback);
client.ping(strCallback);
client.unref();
// Strings (http://redis.io/commands#strings)
@@ -79,10 +79,10 @@ client.once(str, messageHandler);
// ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
// some of the bulk methods
client.get(args);
client.get(args, resCallback);
client.set(args);
client.set(args, resCallback);
client.get('test');
client.get('test', resCallback);
client.set('test', 'test');
client.set('test', 'test', resCallback);
client.mset(args, resCallback);
client.incr(str, resCallback);
@@ -104,7 +104,7 @@ client.multi()
.dbsize()
.exec(resCallback);
client.multi(commandArr).exec();
client.multi([['get', 'test']]).exec();
// Monitor mode
client.monitor(resCallback);