Description
Describe the bug
Using @vue/apollo-composable > alpha 10 is breaking typescript imports with @graphql-codegen/typescript-vue-apollo generated code.
To Reproduce
Steps to reproduce the behavior:
- Setup a project with
@vue/apollo-composable@latest
and@graphql-condegen/typescript-vue-apollo@latest
yarn graphql-codegen && yarn dev
- Slew of
Parameter x implicitly has an 'any' type.
yarn add @vue/apollo-composable@v4.0.0-alpha.10 && yarn dev
- All typescript errors are gone and composition functions have correct typing
Expected behavior
All type imports should be working on versions greater than alpha.10
Versions
vue: 2.6
vue-apollo: @vue/apollo-composable@v4.0.0-alpha.12
apollo-client: 2.6.10
Additional context
This appears to be independent of @graphql-codegen/typescript-vue-apollo
I have tried creating the codegen files using the latest several versions of @graphql-codegen/typescript-vue-apollo
in combination with @vue/apollo-composable
. Through trial and error I determined that any codegen file generated with any of the last several versions of @graphql-codegen/typescript-vue-apollo
works with apollo-composable alpha 10. Not a single codegen file works with apollo-composable > v.alpha.10