Skip to content
PACKAGES

assertKeyedRateLimitRequest()

Assert and deeply normalize one strict D648 keyed rate-limit request.

Unknown fields, accessors, functions, BigInt, non-plain objects, unsafe numbers, and other non-strict-JSON material fail instead of being ignored.

import { assertKeyedRateLimitRequest } from "@graphrefly/ts/rate-limit";
function assertKeyedRateLimitRequest(value: unknown): KeyedRateLimitRequest
ParameterTypeDescription
valueunknownCandidate complete request material.

The immutable normalized strict request.

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

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