Skip to content

Commit 5ccd50f

Browse files
committed
feat(types): improve type for 'Bottleneck' and 'connection'
1 parent 6be81ba commit 5ccd50f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export type SecondaryLimitHandler = {
2626

2727
export type ThrottlingOptionsBase = {
2828
enabled?: boolean;
29-
Bottleneck?: any;
29+
Bottleneck?: typeof Bottleneck;
3030
id?: string;
3131
timeout?: number;
32-
connection?: any;
32+
connection?: Bottleneck.RedisConnection | Bottleneck.IORedisConnection;
3333
minimumSecondaryRateRetryAfter?: number;
3434
retryAfterBaseValue?: number;
3535
write?: Bottleneck.Group;

0 commit comments

Comments
 (0)