Skip to content
PACKAGES

assertKeyedRateLimitTransition()

Validate a ready transition from any supported reference family.

import { assertKeyedRateLimitTransition } from "@graphrefly/ts/rate-limit";
function assertKeyedRateLimitTransition(value: unknown): KeyedRateLimitTransition
ParameterTypeDescription
valueunknownCandidate fixed-window, sliding-window, or token-bucket transition.

The immutable normalized transition.

import { assertKeyedRateLimitTransition } from "@graphrefly/ts/rate-limit";

packages/ts/src/rate-limit/keyed-rate-limit-algorithms.ts