UnionOptions
mobx-state-tree - v7.0.0 › UnionOptions
Type parameters
▪ Types: IAnyType[]
Hierarchy
- UnionOptions
Index
Properties
Properties
Optional
dispatcher
• dispatcher? : ITypeDispatcher‹Types›
Defined in src/types/utility-types/union.ts:38
A function that returns the type to be used given an input snapshot.
Optional
eager
• eager? : undefined | false | true
Defined in src/types/utility-types/union.ts:33
Whether or not to use eager validation.
When true
, the first matching type will be used. Otherwise, all types will be checked and the
validation will pass if and only if a single type matches.