UNPKG

@developers-joyride/rate-limiter

Version:

A flexible rate limiting library with TypeScript support, Express middleware, and NestJS guard/interceptor capabilities

13 lines (12 loc) 384 B
import mongoose, { Document } from "mongoose"; export interface IRateLimitLog extends Document { key: string; count: number; resetTime: Date; createdAt: Date; } export declare const RateLimitLog: mongoose.Model<IRateLimitLog, {}, {}, {}, mongoose.Document<unknown, {}, IRateLimitLog, {}> & IRateLimitLog & Required<{ _id: unknown; }> & { __v: number; }, any>;