Skip to content

Commit

Permalink
Merge pull request #239 from Omers-Frontegg/fix_union_consume_return_…
Browse files Browse the repository at this point in the history
…type

fixed RateLimiterUnion.consume return type
  • Loading branch information
animir authored Dec 8, 2023
2 parents bd8c70f + cd05ee1 commit 7a4ed05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export class RateLimiterMemcache extends RateLimiterStoreAbstract { }
export class RateLimiterUnion {
constructor(...limiters: RateLimiterAbstract[]);

consume(key: string | number, points?: number): Promise<RateLimiterRes[]>;
consume(key: string | number, points?: number): Promise<Record<string, RateLimiterRes>>;
}

export class RLWrapperBlackAndWhite extends RateLimiterAbstract {
Expand Down

0 comments on commit 7a4ed05

Please sign in to comment.