Skip to content
PACKAGES

assertSlidingWindowRateLimitPolicy()

Validate and deeply normalize one strict sliding-window-v1 policy.

import { assertSlidingWindowRateLimitPolicy } from "@graphrefly/ts/rate-limit";
function assertSlidingWindowRateLimitPolicy(value: unknown): SlidingWindowRateLimitPolicy
ParameterTypeDescription
valueunknownCandidate strict JSON policy material.

The immutable normalized sliding-window policy.

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

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