Function isIntrinsicErrorType

  • Determines whether the given type is the "error" intrinsic type.

    The intrinsic error type occurs when TypeScript encounters an error while trying to resolve the type.

    Parameters

    • type: Type

    Returns type is IntrinsicErrorType

    Example

    declare const type: ts.Type;

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