Check if type is union type.
const isUnion: IsUnion<"123" | "456"> = true Copy
const isUnion: IsUnion<"123" | "456"> = true
Check if type is union type.