Skip to content
Interfacetypesv0.14.4

RateLimitWindow

A usage window for an IRateLimiter key.

interface RateLimitWindow

Properties

limit

Uses allowed inside the window before the key is limited.

limit?: number

Default:1

windowMs

The sliding-window length.

windowMs: number;