Skip to content
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

Avoid importing any from apolloClientInstanceImport #258

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

martijndeh
Copy link
Contributor

Using the latest version our build is failing because in the generated graphql the context type is imported, but it's not set and thus defaults to any.

import { getApolloClient, any } from '../apolloClient';

This doesn't work, because we don't export something called any. I assume your intention is to use TypeScript any here?

This is just a quick fix to filter any out. I wasn't sure if you wanted to use contextTypeRequired instead, so I figured to stay as close to the code as-is now.

Using the latest version our build is failing because in the generated graphql the context type is imported, but it's not set and thus defaults to `any`.

```
import { getApolloClient, any } from '../apolloClient';
```

This doesn't work, because we don't export something called any. I assume your intention is to use TypeScript `any` here?

This is just a quick fix to filter `any` out. I wasn't sure if you wanted to use `contextTypeRequired` instead, so I figured to stay as close to the code as-is now.
@correttojs correttojs merged commit 029b87b into correttojs:main Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants