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

Commit

Permalink
Fix query is required in fetchMore (#3065)
Browse files Browse the repository at this point in the history
* fix(Query): fix typescript

* Changelog update
  • Loading branch information
HsuTing authored and hwillson committed May 28, 2019
1 parent 028333e commit c260cc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
[@brentertz](https://github.com/brentertz) in [#3064](https://github.com/apollographql/react-apollo/pull/3064)
- Stop setting optional input to `null`, when using the `graphql` HOC. <br/>
[@ZhengYuTay](https://github.com/ZhengYuTay) in [#3056](https://github.com/apollographql/react-apollo/pull/3056)
- Fix typescript error caused by `query` being mandatory in the `fetchMore`
signature. <br/>
[@HsuTing](https://github.com/HsuTing) in [#3065](https://github.com/apollographql/react-apollo/pull/3065)


## 2.5.6 (2019-05-22)
Expand Down
2 changes: 1 addition & 1 deletion src/Query.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type ObservableQueryFields<TData, TVariables> = Pick<
fetchMoreOptions: FetchMoreQueryOptions<TVariables, K> & FetchMoreOptions<TData, TVariables>,
) => Promise<ApolloQueryResult<TData>>) &
(<TData2, TVariables2, K extends keyof TVariables2>(
fetchMoreOptions: { query: DocumentNode } & FetchMoreQueryOptions<TVariables2, K> &
fetchMoreOptions: { query?: DocumentNode } & FetchMoreQueryOptions<TVariables2, K> &
FetchMoreOptions<TData2, TVariables2>,
) => Promise<ApolloQueryResult<TData2>>);
};
Expand Down

0 comments on commit c260cc5

Please sign in to comment.