UNPKG

@omgovich/firebase-functions-rate-limiter

Version:

JS/TS library that allows you to set per - time, per - user or per - anything limits for calling Firebase cloud functions

19 lines (18 loc) 609 B
export interface FirebaseFunctionsRateLimiterConfiguration { name?: string; periodSeconds?: number; maxCalls?: number; debug?: boolean; } export declare namespace FirebaseFunctionsRateLimiterConfiguration { interface ConfigurationFull extends FirebaseFunctionsRateLimiterConfiguration { name: string; periodSeconds: number; maxCalls: number; debug: boolean; } namespace ConfigurationFull { function validate(o: ConfigurationFull & FirebaseFunctionsRateLimiterConfiguration): void; } const DEFAULT_CONFIGURATION: ConfigurationFull; }