UNPKG

1.01 kBTypeScriptView Raw
1import * as React from 'react';
2import { OperationVariables } from '../../core';
3import { IDocumentDefinition } from '../parser';
4export declare const defaultMapPropsToOptions: () => {};
5export declare const defaultMapResultToProps: <P>(props: P) => P;
6export declare const defaultMapPropsToSkip: () => boolean;
7export declare function getDisplayName<P>(WrappedComponent: React.ComponentType<P>): string;
8export declare function calculateVariablesFromProps<TProps>(operation: IDocumentDefinition, props: TProps): OperationVariables;
9export type RefSetter<TChildProps> = (ref: React.ComponentClass<TChildProps>) => void | void;
10export declare class GraphQLBase<TProps, TChildProps, TState = any> extends React.Component<TProps, TState> {
11 withRef: boolean;
12 private wrappedInstance?;
13 constructor(props: TProps);
14 getWrappedInstance(): React.ComponentClass<TChildProps, any> | undefined;
15 setWrappedInstance(ref: React.ComponentClass<TChildProps>): void;
16}
17//# sourceMappingURL=hoc-utils.d.ts.map
\No newline at end of file