Back to Apollo Client

Api Report Link Error.Api

.api-reports/api-report-link_error.api.md

3.14.11.1 KB
Original Source

API Report File for "@apollo/client"

Do not edit this file. It is a report generated by API Extractor.

ts

import { ApolloLink } from '@apollo/client/link';
import type { ErrorLike } from '@apollo/client';
import { Observable } from 'rxjs';

// @public (undocumented)
export namespace ErrorLink {
    export interface ErrorHandler {
        // (undocumented)
        (options: ErrorHandlerOptions): Observable<ApolloLink.Result> | void;
    }
    export interface ErrorHandlerOptions {
        error: ErrorLike;
        forward: ApolloLink.ForwardFunction;
        operation: ApolloLink.Operation;
        result?: ApolloLink.Result;
    }
    // (undocumented)
    export namespace ErrorLinkDocumentationTypes {
        export function ErrorHandler(options: ErrorHandlerOptions): Observable<ApolloLink.Result> | void;
    }
}

// @public
export class ErrorLink extends ApolloLink {
    constructor(errorHandler: ErrorLink.ErrorHandler);
}

// @public @deprecated (undocumented)
export function onError(errorHandler: ErrorLink.ErrorHandler): ErrorLink;

// (No @packageDocumentation comment for this package)