Skip to content

Commit

Permalink
feat(types): improve type for 'Bottleneck' and 'connection'
Browse files Browse the repository at this point in the history
  • Loading branch information
oscard0m committed Mar 12, 2022
1 parent 6be81ba commit 5ccd50f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export type SecondaryLimitHandler = {

export type ThrottlingOptionsBase = {
enabled?: boolean;
Bottleneck?: any;
Bottleneck?: typeof Bottleneck;
id?: string;
timeout?: number;
connection?: any;
connection?: Bottleneck.RedisConnection | Bottleneck.IORedisConnection;
minimumSecondaryRateRetryAfter?: number;
retryAfterBaseValue?: number;
write?: Bottleneck.Group;
Expand Down

0 comments on commit 5ccd50f

Please sign in to comment.