コンテンツにスキップ
日本語

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.

new TimeoutOptionsValidator(): TimeoutOptionsValidator

Defined in: src/http/middleware/TimeoutOptions.ts:37

TimeoutOptionsValidator

OptionsValidator<TimeoutOptionsType>.constructor

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.

Partial<T>

void

OptionsValidator.validate