mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
koa-ratelimit: Missing support for ioredis (#44080)
This commit is contained in:
parent
410945551d
commit
7ddd7b45d2
3
types/koa-ratelimit/index.d.ts
vendored
3
types/koa-ratelimit/index.d.ts
vendored
@ -7,6 +7,7 @@
|
||||
|
||||
import { Middleware, Context } from "koa";
|
||||
import { RedisClient } from "redis";
|
||||
import { Redis } from "ioredis";
|
||||
|
||||
declare function KoaRatelimit(options?: KoaRatelimit.MiddlewareOptions): Middleware;
|
||||
|
||||
@ -37,7 +38,7 @@ declare namespace KoaRatelimit {
|
||||
/**
|
||||
* The database powering the backing rate-limiter package.
|
||||
*/
|
||||
db: RedisClient | Map<any, any>;
|
||||
db: Redis | RedisClient | Map<any, any>;
|
||||
|
||||
/**
|
||||
* The length of a single limiting period. This value is expressed
|
||||
|
||||
Loading…
Reference in New Issue
Block a user