We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
enabled
false
1 parent 1678135 commit 28098cbCopy full SHA for 28098cb
src/types.ts
@@ -38,8 +38,11 @@ export type ThrottlingOptionsBase = {
38
onRateLimit: LimitHandler;
39
};
40
41
-export type ThrottlingOptions = ThrottlingOptionsBase &
42
- (AbuseLimitHandler | SecondaryLimitHandler);
+export type ThrottlingOptions =
+ | (ThrottlingOptionsBase & (AbuseLimitHandler | SecondaryLimitHandler))
43
+ | (Partial<
44
+ ThrottlingOptionsBase & (AbuseLimitHandler | SecondaryLimitHandler)
45
+ > & { enabled: false });
46
47
export type Groups = {
48
global?: Bottleneck.Group;
0 commit comments