UNPKG

react-apollo

Version:
18 lines (17 loc) 1.05 kB
/// <reference types="react" /> import * as React from 'react'; import { OperationVariables } from './types'; 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, graphQLDisplayName: string, wrapperName: string): OperationVariables | undefined; export declare 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>; setWrappedInstance(ref: React.ComponentClass<TChildProps>): void; }