UNPKG

@yveskaufmann/koa2-ratelimit

Version:

IP rate-limiting middleware for Koajs 2. Use to limit repeated requests to APIs and/or endpoints such as password reset.

11 lines 334 B
export declare type TimeKey = "ms" | "sec" | "min" | "hour" | "day" | "week" | "month" | "year"; export declare type Time = { [k in TimeKey]?: number; }; /** * Converts a given time object to timestamp in ms. */ export declare namespace Time { function toMs(time: Time | number): number; } //# sourceMappingURL=Time.d.ts.map