Skip to content

RateLimitCostFactory

RateLimitCostFactory = (context) => number

Defined in: packages/pipeline-rate-limit/src/interfaces/rate-limit-options.interface.ts:16

Computes the points a request costs from the pipeline context — e.g. one point per item of a bulk command. Must return a non-negative safe integer.

IPipelineContext

number