Skip to content

Commit 78ae54b

Browse files
authored
Merge pull request #131 from cliffkoh/patch-1
Update types to reflect new Redis argument
2 parents 9b7dc3c + 9cb7f96 commit 78ae54b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bottleneck.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ declare module "bottleneck" {
169169
* An existing NodeRedis client to use. If using, `clientOptions` will be ignored.
170170
*/
171171
readonly client?: any;
172+
/**
173+
* Optional IORedis library from `require('ioredis')` or equivalent. If not, bottleneck will attempt to require ioredis at runtime.
174+
*/
175+
readonly Redis?: any;
172176
};
173177

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

189197
type BatcherOptions = {

0 commit comments

Comments
 (0)