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

    Function isUnionType

    • Test if a type is a UnionType.

      Parameters

      • type: Type

      Returns type is UnionType

      declare const type: ts.Type;

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