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

17 lines (16 loc) 503 B
export interface RealtimeDbEquivalent { ref(path?: string | any | undefined): RealtimeDbEquivalent.Reference; } export declare namespace RealtimeDbEquivalent { interface Reference { transaction(updateFn: (data: any) => any, completeFn?: any): Promise<{ committed: boolean; snapshot: DataSnapshot | null; }>; once(eventType: "value"): Promise<DataSnapshot>; } interface DataSnapshot { val(): any; exists(): boolean; } }