Union
The union type allows you to have multiple choices of types.
Union types perform exactly as intended in exacting
.
Validator
You can do more than two items for Union by hand, or use an exposed function called union()
to speed up the process.