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

Generate a @types/apollo-datasource-graphql #16

Open
nlarusstone opened this issue Nov 5, 2019 · 2 comments
Open

Generate a @types/apollo-datasource-graphql #16

nlarusstone opened this issue Nov 5, 2019 · 2 comments

Comments

@nlarusstone
Copy link

Hi,

I'm using apollo-datasource-graphql, but I'm wondering if it would be possible to generate a @types/apollo-datasource-graphql so that I can fix the implicit-any error generated by TS?

Thanks!

@k-atama
Copy link

k-atama commented Dec 21, 2021

It looks like this was never done? Has this been resolved some other way that I'm not seeing? I make a quick check for the type definition files but as far as I can tell this is still needed? Or, perhaps better, exporting the types directly from the package somehow?

@yianni-ververis
Copy link

yianni-ververis commented Jul 26, 2022

I am also getting this

  node_modules/apollo-server-core/dist/graphqlOptions.d.ts:20:5
    20     dataSources?: () => DataSources<TContext>;
           ~~~~~~~~~~~
    The expected type comes from property 'dataSources' which is declared here on type 'ApolloServerExpressConfig & { cors?: boolean | CorsOptions | undefined; onHealthCheck?: ((req: Request<ParamsDictionary, any, any, ParsedQs, Record<...>>) => Promise<...>) | undefined; healthCheckPath?: string | ... 1 more ... | undefined; stopGracePeriodMillis?: number | undefined; }'

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

No branches or pull requests

3 participants