Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Fix <ApolloProvider/> typings (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Madumo authored and James Baxley committed Nov 6, 2017
1 parent b52b017 commit 3431ab6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Support arrays being returned from render in SSR [#1158](https://github.com/apollographql/react-apollo/pull/1158)
- Support passing an updater function to `setState` in SSR mode [#1263](https://github.com/apollographql/react-apollo/pull/1263)
- Correctly initializes component state as null (not undefined) [#1300](https://github.com/apollographql/react-apollo/pull/1310)
- Correctly provide the generic cache type to ApolloProvider [#1319](https://github.com/apollographql/react-apollo/pull/1319)

### 2.0.0-beta.0
- upgrade to Apollo Client 2.0
Expand Down
8 changes: 4 additions & 4 deletions src/ApolloProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import QueryRecyclerProvider from './QueryRecyclerProvider';

const invariant = require('invariant');

export interface ProviderProps<Cache> {
client: ApolloClient<Cache>;
export interface ProviderProps<TCache> {
client: ApolloClient<TCache>;
}

export default class ApolloProvider extends Component<
ProviderProps<Cache>,
export default class ApolloProvider<TCache> extends Component<
ProviderProps<TCache>,
any
> {
static propTypes = {
Expand Down

0 comments on commit 3431ab6

Please sign in to comment.