.api-reports/api-report-link_error.api.md
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;
}
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)