Extracts the union of guarded types from an array of type guards.
Given an array of Guard functions, infers the union of all types they guard. Useful for deriving the result type of union validation with isUnion.
The array type containing type guards
isUnion for validating a value against any of the guards
Extracts the union of guarded types from an array of type guards.
Given an array of Guard functions, infers the union of all types they guard. Useful for deriving the result type of union validation with isUnion.