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

TypeScript definition missing for error passed to formatError #2294

Closed
dandrei opened this issue Feb 9, 2019 · 2 comments
Closed

TypeScript definition missing for error passed to formatError #2294

dandrei opened this issue Feb 9, 2019 · 2 comments
Labels
🧬 typings Relates to TypeScript changes or improvements.

Comments

@dandrei
Copy link

dandrei commented Feb 9, 2019

Hey everyone,

The error parameter sent to the formatError function (from the config of ApolloServer) is missing TypeScript definitions.

@cheapsteak cheapsteak added the 🧬 typings Relates to TypeScript changes or improvements. label Feb 12, 2019
@abernix
Copy link
Member

abernix commented Feb 13, 2019

It seems possible that we need to specify a more specific type signature here:

Thoughts?

@JacksonKearl
Copy link

This was closed in #2343.

formatError?: (error: GraphQLError) => GraphQLFormattedError;

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🧬 typings Relates to TypeScript changes or improvements.
Projects
None yet
Development

No branches or pull requests

4 participants