🌪️ filter
Filter the type T to ensure it is a union.
T
type R = IsUnion<'a' | 'b'> // 'a' | 'b'type R = IsUnion<boolean> // booleantype R = IsUnion<number> // never Copy
type R = IsUnion<'a' | 'b'> // 'a' | 'b'type R = IsUnion<boolean> // booleantype R = IsUnion<number> // never
🌪️ filter
Filter the type
T
to ensure it is a union.