Skip to content

Commit

Permalink
Merge pull request #131 from cliffkoh/patch-1
Browse files Browse the repository at this point in the history
Update types to reflect new Redis argument
  • Loading branch information
SGrondin authored Jul 17, 2019
2 parents 9b7dc3c + 9cb7f96 commit 78ae54b
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 78ae54b

Please sign in to comment.