-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typescript issue with
defaultOptions
in constructor
When the new `QueryBaseOptions` and `QueryOptions` interfaces were created in eb89b23, `ModifiableWatchQueryOptions` was replaced by `QueryOptions` when checking the `query` `defaultOptions` used in the Apollo Client constructor. Unfortunately, this introduced a small type check bug since the `query` property in `QueryOptions` is a mandatory property, whereas `ModifiableWatchQueryOptions` did not include this property. This commit replaces the use of `QueryOptions` with `QueryBaseOptions` when type checking `query` in `defaultOptions`, since `QueryBaseOptions` doesn't have a `query` property. Fixes #3583.
- Loading branch information
Showing
3 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters