@pleisto/active-support
    Preparing search index...

    Type Alias IsUnion<T, U>

    IsUnion: T extends unknown ? [U] extends [T] ? false : true : false

    Check if type is union type.

    Type Parameters

    • T
    • U extends T = T
    const isUnion: IsUnion<"123" | "456"> = true