-
-
Notifications
You must be signed in to change notification settings - Fork 523
Type MutateWithRequiredVariables does not satisfy the constraint MutateWithOptionalVariables #948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm able to reproduce if TS (currently 3.8.3) is configured with the |
Yes, my TS is 3.8.3. Here is my
|
I created a possible solution in #955. Maybe someone can chime in and test the change. With the change incorporated, I got rid of all TS errors in my application. There might be other use-cases that are not covered, though. |
Facing this issue as well, anyone has a work around in the mean time? |
@chanlito Can you manually test this fix? https://github.com/vuejs/vue-apollo/pull/955/files You will have to patch this in |
@tobias-kuendig Applying your proposed change in #955 solves the issue for me. |
@chanlito I do not face the issue if I use alpha.7 |
Describe the bug
To Reproduce
Steps to reproduce the behavior:
node_modules/@vue/apollo-composable/dist/useMutation.d.ts
L45 C340
Expected behavior
No errors.
Versions
vue: 2.6.11
@vue/composition-api: 0.5.0
@vue/apollo-composable: ^4.0.0-alpha.8
apollo-client: 2.6.8
Additional context
I used JetBrains Rider to look into the error.
The text was updated successfully, but these errors were encountered: