UNPKG

rate-limiter-custom

Version:

A fast, customizable, and efficient rate-limiting middleware for Express in TypeScript.

4 lines (3 loc) 284 B
import { Request, Response, NextFunction } from "express"; import { RateLimiterOptions } from "./config"; export declare function fixedWindowRateLimiter(options: RateLimiterOptions): (req: Request, res: Response, next: NextFunction) => Response<any, Record<string, any>> | undefined;