Function isIntersectionType

  • Test if a type is a IntersectionType.

    Parameters

    • type: Type

    Returns type is IntersectionType

    Example

    declare const type: ts.Type;

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