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

    Type Alias IfUnknown<T, Y, N>

    IfUnknown: If<IsUnknown<T>, Y, N>

    If the type T accepts type unknown, output type Y, otherwise output type N.

    如果类型 T 接受类型 unknown,则输出类型 Y,否则输出类型 N。

    Type Parameters

    • T

      要检查的类型

    • Y = true

      类型为 unknown 时返回的类型

    • N = false

      类型不为 unknown 时返回的类型