Creates a Union type.
Example usage is shown below.
const T = Type.Union([ // const T = {
Type.String(), // anyOf: [
Type.Number() // { type: 'string' },
]) // { type: 'number' }
// ]
// }
type T = Static<typeof T> // type T = string | number
Use the IsUnion function to guard values of this type.
Type.IsUnion(value) // value is TUnion