Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1006 Bytes

File metadata and controls

36 lines (28 loc) · 1006 Bytes

API Report File for "@apollo/client"

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

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;
    }
    // (undocumented)
    export interface ErrorHandlerOptions {
        error: ErrorLike;
        forward: ApolloLink.ForwardFunction;
        operation: ApolloLink.Operation;
        result?: ApolloLink.Result;
    }
}

// @public (undocumented)
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)