Skip to content

RateLimitPartitionFactory

RateLimitPartitionFactory<TRequest> = (context) => string | undefined

Defined in: packages/pipeline-rate-limit/src/helpers/partitioned-key.ts:23

Resolves the stable caller/partition identifier used by createPartitionedRateLimitKeyFactory.

Typical values are an authenticated user ID, account ID, API-client ID, or a trusted transport identity copied into context.items by an earlier behavior.

TRequest = unknown

The request class the handler receives, which types context.request. The factory does not check it at run time.

IPipelineContext<TRequest>

string | undefined