ActorOptionsValidator
此内容尚不支持你的语言。
Defined in: src/ActorOptions.ts:174
The two mailbox fields are the only ones with constraints the type system
does not already carry. BoundedMailbox checks them too, but from inside
the cell constructor — here they fail at the spawn call that got it wrong.
Extends
Section titled “Extends”OptionsValidator<ActorOptionsType<TMessage>>
Type Parameters
Section titled “Type Parameters”TMessage
Section titled “TMessage”TMessage = unknown
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ActorOptionsValidator<
TMessage>():ActorOptionsValidator<TMessage>
Defined in: src/ActorOptions.ts:176
Returns
Section titled “Returns”ActorOptionsValidator<TMessage>
Overrides
Section titled “Overrides”OptionsValidator<ActorOptionsType<TMessage>>.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
