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

Fix <ApolloProvider/> typings #1319

Merged
merged 1 commit into from
Nov 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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