Zum Inhalt springen
Deutsch

ClusterSingletonManagerOptionsValidator

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:82

Validates resolved ClusterSingletonManagerOptionsType settings.

Lower-stakes than most validators in the repo, because the extension is normally the only thing that builds these and it validates StartSingletonOptions first — so this is reachable only by a caller constructing the manager directly. Worth closing anyway: that caller gets the same up-front OptionsError as everyone else instead of a Cannot read properties of undefined from inside preStart.

T

new ClusterSingletonManagerOptionsValidator<T>(): ClusterSingletonManagerOptionsValidator<T>

Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:84

ClusterSingletonManagerOptionsValidator<T>

OptionsValidator<ClusterSingletonManagerOptionsType<T>>.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