Returns the last element of a union type.
type Last = LastOfUnion<1 | 2 | 3>;//=> 3 Copy
type Last = LastOfUnion<1 | 2 | 3>;//=> 3
Returns the last element of a union type.