UNPKG

react-apollo

Version:
31 lines (30 loc) 781 B
/// <reference types="react" /> import * as React from 'react'; import { Component } from 'react'; import { Store } from 'redux'; import ApolloClient from 'apollo-client'; export interface ProviderProps { store?: Store<any>; client: ApolloClient; } export default class ApolloProvider extends Component<ProviderProps, any> { static propTypes: { store: any; client: any; children: any; }; static childContextTypes: { store: any; client: any; }; static contextTypes: { store: any; }; constructor(props: any, context: any); componentWillReceiveProps(nextProps: any): void; getChildContext(): { store: any; client: ApolloClient; }; render(): React.ReactElement<any>; }