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

    Function intersectionConstituents

    • Get the intersection type parts of the given type.

      If the given type is not a intersection type, an array contain only that type will be returned.

      Parameters

      • type: Type

      Returns Type[]

      declare const type: ts.Type;

      for (const constituent of intersectionConstituents(type)) {
      // ...
      }