Skip to content

Commit f6cea9a

Browse files
committed
fixed ts-ignore
1 parent 912108f commit f6cea9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/middleware/rateLimiterSetup.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//@ts-ignore
21
import Redis from 'ioredis';
32
import { RateLimiterOptions, RateLimiterSelection, TokenBucketOptions } from '../@types/rateLimit';
43
import SlidingWindowCounter from '../rateLimiters/slidingWindowCounter';
@@ -21,6 +20,7 @@ export default function setupRateLimiter(
2120
switch (selection) {
2221
case 'TOKEN_BUCKET':
2322
// todo validate options
23+
//@ts-ignore
2424
return new TokenBucket(options.bucketSize, options.refillRate, client);
2525
break;
2626
case 'LEAKY_BUCKET':
@@ -33,6 +33,7 @@ export default function setupRateLimiter(
3333
throw new Error('Sliding Window Log has not be implemented.');
3434
break;
3535
case 'SLIDING_WINDOW_COUNTER':
36+
//@ts-ignore
3637
return new SlidingWindowCounter(options.windowSize, options.capacity, client);
3738
break;
3839
default:

0 commit comments

Comments
 (0)