krapio
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

PropertyTypeDescription
globalRateLimitWindow | null-
routesRecord<string, RateLimitWindow>endpoints with a limit of their own, keyed by route name

On this page