diesel-core
Version:
Web framework built on Web Standards
11 lines (10 loc) • 312 B
TypeScript
import { ContextType } from "../../types";
import { RateLimitStore } from "./implementation";
type Props = {
windowMs?: number;
max?: number;
message?: string;
store?: RateLimitStore;
};
export declare const rateLimit: (props: Props) => (ctx: ContextType) => Promise<Response | void>;
export {};