콘텐츠로 이동
한국어

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.

TMessage = unknown

new ActorOptionsValidator<TMessage>(): ActorOptionsValidator<TMessage>

Defined in: src/ActorOptions.ts:176

ActorOptionsValidator<TMessage>

OptionsValidator<ActorOptionsType<TMessage>>.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