Back to Apollo Client

Api Report Testing React.Api

.api-reports/api-report-testing_react.api.md

3.14.11.6 KB
Original Source

API Report File for "@apollo/client"

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

ts

import type { ApolloCache } from '@apollo/client/cache';
import { ApolloClient } from '@apollo/client';
import type { ApolloLink } from '@apollo/client/link';
import type { LocalState } from '@apollo/client/local-state';
import { MockLink } from '@apollo/client/testing';
import * as React_2 from 'react';

// Warning: (ae-forgotten-export) The symbol "MockedProviderState" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export class MockedProvider extends React_2.Component<MockedProviderProps, MockedProviderState> {
    constructor(props: MockedProviderProps);
    // (undocumented)
    componentWillUnmount(): void;
    // (undocumented)
    render(): React_2.JSX.Element | null;
}

// @public (undocumented)
export interface MockedProviderProps {
    // (undocumented)
    cache?: ApolloCache;
    // (undocumented)
    childProps?: object;
    // (undocumented)
    children?: any;
    // (undocumented)
    defaultOptions?: ApolloClient.DefaultOptions;
    devtools?: ApolloClient.Options["devtools"];
    // (undocumented)
    link?: ApolloLink;
    // (undocumented)
    localState?: LocalState;
    // (undocumented)
    mockLinkDefaultOptions?: MockLink.DefaultOptions;
    // (undocumented)
    mocks?: ReadonlyArray<MockLink.MockedResponse<any, any>>;
    // (undocumented)
    showWarnings?: boolean;
}

// @public (undocumented)
interface MockedProviderState {
    // (undocumented)
    client: ApolloClient;
}

// (No @packageDocumentation comment for this package)