TimeoutOptionsValidator
Defined in: src/http/middleware/TimeoutOptions.ts:36
Validates resolved TimeoutOptionsType settings — a timeout
deadline (ms) must be a positive finite number. Runs from any input
path (bare number, plain object, builder) since it checks the resolved bag.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TimeoutOptionsValidator():
TimeoutOptionsValidator
Defined in: src/http/middleware/TimeoutOptions.ts:37
Returns
Section titled “Returns”TimeoutOptionsValidator
Overrides
Section titled “Overrides”OptionsValidator<TimeoutOptionsType>.constructor
Methods
Section titled “Methods”validate()
Section titled “validate()”validate(
settings):void
Defined in: src/util/OptionsValidator.ts:75
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
