UNPKG

@apollo/client

Version:

A fully-featured caching GraphQL client.

17 lines 1.01 kB
import * as React from 'react'; import { OperationVariables } from '../../core'; import { IDocumentDefinition } from '../parser'; export declare const defaultMapPropsToOptions: () => {}; export declare const defaultMapResultToProps: <P>(props: P) => P; export declare const defaultMapPropsToSkip: () => boolean; export declare function getDisplayName<P>(WrappedComponent: React.ComponentType<P>): string; export declare function calculateVariablesFromProps<TProps>(operation: IDocumentDefinition, props: TProps): OperationVariables; export type RefSetter<TChildProps> = (ref: React.ComponentClass<TChildProps>) => void | void; export declare class GraphQLBase<TProps, TChildProps, TState = any> extends React.Component<TProps, TState> { withRef: boolean; private wrappedInstance?; constructor(props: TProps); getWrappedInstance(): React.ComponentClass<TChildProps, any> | undefined; setWrappedInstance(ref: React.ComponentClass<TChildProps>): void; } //# sourceMappingURL=hoc-utils.d.ts.map