ts-api-utils - v3.0.0-rc.1
    Preparing search index...

    Function isFalsyType

    • Determines whether a type is definitely falsy. This function doesn't unwrap union types.

      Parameters

      • type: Type

      Returns boolean

      declare const type: ts.Type;

      if (isFalsyType(type)) {
      // ...
      }