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

Commit

Permalink
Make ChildProps.data non-optional (#1083) (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
choffmeister authored and James Baxley committed Sep 26, 2017
1 parent 83b2c6f commit 2138994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- fix shallowEqual bug.
- Added notifyOnNetworkStatusChange to QueryOpts and MutationOpts Typesccript definitions [#1034](https://github.com/apollographql/react-apollo/pull/1034)
- Added variables types with Typescript [#997](https://github.com/apollographql/react-apollo/pull/997)
- Made `ChildProps.data` non-optional [#1143](https://github.com/apollographql/react-apollo/pull/1143)

### 1.4.15
- Fix: handle calling refetch in child componentDidMount
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export interface OptionProps<TProps, TResult> {
}

export type ChildProps<P, R> = P & {
data?: QueryProps & R;
data: QueryProps & Partial<R>;
mutate?: MutationFunc<R>;
};

Expand Down

0 comments on commit 2138994

Please sign in to comment.