From cd05ee1cd0f96a240f2a63af9c7fd6f579ce5738 Mon Sep 17 00:00:00 2001 From: Omers-Frontegg <136332206+Omers-Frontegg@users.noreply.github.com> Date: Wed, 6 Dec 2023 11:07:32 +0200 Subject: [PATCH] fixed RateLimiterUnion.consume return type --- lib/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index eb59884..7ae2336 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -354,7 +354,7 @@ export class RateLimiterMemcache extends RateLimiterStoreAbstract { } export class RateLimiterUnion { constructor(...limiters: RateLimiterAbstract[]); - consume(key: string | number, points?: number): Promise; + consume(key: string | number, points?: number): Promise>; } export class RLWrapperBlackAndWhite extends RateLimiterAbstract {