@pengzhanbo/utils - v3.4.1
    Preparing search index...

    Type Alias IsEqual<X, Y>

    IsEqual: <T>() => T extends X ? 1 : 2 extends <T>() => T extends Y ? 1 : 2
        ? true
        : false

    If the type X is equal to the type Y, output type true, otherwise output type false.

    如果类型 X 等于类型 Y,则输出 true,否则输出 false。

    Type Parameters

    • X

      第一个要比较的类型

    • Y

      第二个要比较的类型