@luolapeikko/ts-common
    Preparing search index...

    Type Alias IfEquals<X, Y, A, B>

    IfEquals: <T>() => T extends X ? 1 : 2 extends <T>() => T extends Y ? 1 : 2
        ? A
        : B

    Support for conditional types

    Type Parameters

    • X

      Object type

    • Y

      Object type

    • A = X

      Output object type or never

    • B = never

      Output object type or never

    v0.1.2