Skip to content
PACKAGES

assertFixedWindowRateLimitTransition()

Validate one ready immutable fixed-window-v1 transition.

import { assertFixedWindowRateLimitTransition } from "@graphrefly/ts/rate-limit";
function assertFixedWindowRateLimitTransition(value: unknown): FixedWindowRateLimitTransition
ParameterTypeDescription
valueunknownCandidate transition material.

The normalized fixed-window transition and exact nextState.

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

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