Library referenceTypes
RateLimitState
type RateLimitState = {
global: RateLimitWindow | null;
routes: Record<string, RateLimitWindow>;
};what the tracker knows: the key's window and the routes with a window of their own
Properties
| Property | Type | Description |
|---|---|---|
global | RateLimitWindow | null | - |
routes | Record<string, RateLimitWindow> | endpoints with a limit of their own, keyed by route name |