ShardingOptionsValidator
此内容尚不支持你的语言。
Defined in: src/cluster/sharding/ShardingOptions.ts:193
Validates resolved sharding settings. Generic so StartShardingOptionsValidator can extend it via commonRules; only present values are checked (unset fields fall through to defaults).
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”TMessage
Section titled “TMessage”TMessage
S extends ShardingOptionsType<TMessage> = ShardingOptionsType<TMessage>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ShardingOptionsValidator<
TMessage,S>(optionsName?):ShardingOptionsValidator<TMessage,S>
Defined in: src/cluster/sharding/ShardingOptions.ts:197
Parameters
Section titled “Parameters”optionsName?
Section titled “optionsName?”string = 'ShardingOptions'
Returns
Section titled “Returns”ShardingOptionsValidator<TMessage, S>
Overrides
Section titled “Overrides”OptionsValidator<S>.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
