Skip to content

Commit

Permalink
Update types to reflect new Redis argument
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffkoh authored Jul 16, 2019
1 parent 9b7dc3c commit 9cb7f96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bottleneck.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ declare module "bottleneck" {
* An existing NodeRedis client to use. If using, `clientOptions` will be ignored.
*/
readonly client?: any;
/**
* Optional IORedis library from `require('ioredis')` or equivalent. If not, bottleneck will attempt to require ioredis at runtime.
*/
readonly Redis?: any;
};

type IORedisConnectionOptions = {
Expand All @@ -184,6 +188,10 @@ declare module "bottleneck" {
* An existing ioredis client to use. If using, `clientOptions` and `clusterNodes` will be ignored.
*/
readonly client?: any;
/**
* Optional IORedis library from `require('ioredis')` or equivalent. If not, bottleneck will attempt to require
*/
readonly Redis?: any;
};

type BatcherOptions = {
Expand Down

0 comments on commit 9cb7f96

Please sign in to comment.