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

    Type Alias IfNull<T, Y, N>

    IfNull: If<IsNull<T>, Y, N>

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

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

    Type Parameters

    • T

      要检查的类型

    • Y = true

      类型为 null 时返回的类型

    • N = false

      类型不为 null 时返回的类型