Skip to content
PACKAGES

assertFixedWindowRateLimitTransitionInput()

Validate one strict fixed-window-v1 evaluator input with externally supplied time.

import { assertFixedWindowRateLimitTransitionInput } from "@graphrefly/ts/rate-limit";
function assertFixedWindowRateLimitTransitionInput(value: unknown): FixedWindowRateLimitTransitionInput
ParameterTypeDescription
valueunknownCandidate request, policy, state, and observedAtMs input.

The immutable normalized fixed-window evaluator input.

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

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