Skip to content

Commit

Permalink
fixed RateLimiterUnion.consume return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Omers-Frontegg authored Dec 6, 2023
1 parent 6ab65bf commit cd05ee1
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 cd05ee1

Please sign in to comment.