@loona/react
Version:
App State Management done with GraphQL (react integration)
5 lines (4 loc) • 516 B
TypeScript
import * as React from 'react';
import { DocumentNode } from 'graphql';
import { OperationOption, MutateProps } from 'react-apollo';
export declare function mutation<TProps extends TGraphQLVariables | {} = {}, TData = {}, TGraphQLVariables = {}, TChildProps = Partial<MutateProps<TData, TGraphQLVariables>>>(document: DocumentNode, operationOptions?: OperationOption<TProps, TData, TGraphQLVariables, TChildProps>): (WrappedComponent: React.ComponentType<TChildProps & TProps>) => React.ComponentClass<TProps, any>;