From 7ddd7b45d2d1a7a405c96981d8d8a465d8742b29 Mon Sep 17 00:00:00 2001 From: Oliver Salzburg Date: Sun, 26 Apr 2020 18:30:44 +0200 Subject: [PATCH] koa-ratelimit: Missing support for ioredis (#44080) --- types/koa-ratelimit/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/koa-ratelimit/index.d.ts b/types/koa-ratelimit/index.d.ts index fdc110ef54..af242ed587 100644 --- a/types/koa-ratelimit/index.d.ts +++ b/types/koa-ratelimit/index.d.ts @@ -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; + db: Redis | RedisClient | Map; /** * The length of a single limiting period. This value is expressed