Skip to content

Commit 2a4533f

Browse files
leoasisJames Baxley
authored andcommitted
Make OptionProps.data's TResult partial (apollographql#1231)
1 parent c8d9a14 commit 2a4533f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
- fix skip on component update.
55
- Fix: ensure `client` option can be used with mutation query [#1145](https://github.com/apollographql/react-apollo/pull/1145)
66

7+
- Made `OptionProps.data`'s `TResult` partial [#1231](https://github.com/apollographql/react-apollo/pull/1231)
8+
9+
710
### 1.4.16
811
- upgrade to react-16
912
- fix shallowEqual bug.

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export type MutationFunc<TResult, TVariables = OperationVariables> = (
6262

6363
export interface OptionProps<TProps, TResult> {
6464
ownProps: TProps;
65-
data?: QueryProps & TResult;
65+
data?: QueryProps & Partial<TResult>;
6666
mutate?: MutationFunc<TResult>;
6767
}
6868

0 commit comments

Comments
 (0)