콘텐츠로 이동
한국어

PriorityMailboxOptionsValidator

이 콘텐츠는 아직 번역되지 않았습니다.

Defined in: src/mailbox/PriorityMailboxOptions.ts:162

Validates resolved PriorityMailboxOptionsType settings.

priorityFor gets a required-and-callable check because the accepted input union includes Partial<…>new PriorityMailbox({}) type-checks, and before #647 it failed as this.priorityFor is not a function on the first enqueue, which is inside the sender’s tell and a long way from the mistake. There is no function helper on OptionsValidator (nothing else in the project needs one), so this is a bespoke fail rule.

overflow without capacity is rejected rather than ignored, for the same reason ActorOptions rejects the pair: an unbounded mailbox never overflows, so a policy on its own is a no-op that reads like configuration.

T

new PriorityMailboxOptionsValidator<T>(): PriorityMailboxOptionsValidator<T>

Defined in: src/mailbox/PriorityMailboxOptions.ts:163

PriorityMailboxOptionsValidator<T>

OptionsValidator<PriorityMailboxOptionsType<T>>.constructor

validate(settings): void

Defined in: src/util/OptionsValidator.ts:76

Check the (merged) settings; throws OptionsError on the first violation. Unset (undefined) fields always pass.

Partial<T>

void

OptionsValidator.validate