ThrottleOptionsValidator
이 콘텐츠는 아직 번역되지 않았습니다.
Defined in: src/ThrottleOptions.ts:98
Validates resolved ThrottleOptionsType settings.
qps legitimately admits Infinity — the documented “remove the
throttle” sentinel — which the generic positiveNumber helper rejects
(it requires Number.isFinite), so its rule is bespoke, the same shape
ConsumerControllerOptionsValidator uses for its unbounded-map opt-out.
burst is a real capacity (finite > 0); onExcess one of the two
known modes. clock is an object and is not validated.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ThrottleOptionsValidator():
ThrottleOptionsValidator
Defined in: src/ThrottleOptions.ts:99
Returns
Section titled “Returns”ThrottleOptionsValidator
Overrides
Section titled “Overrides”OptionsValidator<ThrottleOptionsType>.constructor
Methods
Section titled “Methods”validate()
Section titled “validate()”validate(
settings):void
Defined in: src/util/OptionsValidator.ts:109
Check the (merged) settings; throws OptionsError on the first
violation. Unset (undefined) fields always pass.
Parameters
Section titled “Parameters”settings
Section titled “settings”Partial<T>
Returns
Section titled “Returns”void
