Type Alias RateLimitConfig

RateLimitConfig: {
    maxRequests: number;
    windowMs: number;
}

Configuration options for rate limiting.

Type declaration

  • maxRequests: number

    The maximum number of requests allowed within the time window.

  • windowMs: number

    The time window in milliseconds for which the rate limit applies.