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

    Type Alias IfUndefined<T, Y, N>

    IfUndefined: If<IsUndefined<T>, Y, N>

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

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

    Type Parameters

    • T
    • Y = true
    • N = false