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

fix: specify GraphQLFieldResolver type to ensure graphql v15 compatibility #1077

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

santialbo
Copy link
Contributor

If this type is not specified the generated definition file (plugin.d.ts) includes the four generic types, which makes it incompatible with graphql v15.

Fixes #1073

@santialbo
Copy link
Contributor Author

santialbo commented Apr 11, 2022

I've been investigating a bit more and I think trying to ensure v15 compatibility is futile. There's other types like GraphQLScalarType (#1074) which also added generic types.
I'm not sure v15 compatibility is something that is wanted for this library or if it's something that would stall development (feel free to close this pr then)

@tgriesser
Copy link
Member

I'm not sure v15 compatibility is something that is wanted for this library or if it's something that would stall development (feel free to close this pr then)

Yeah, ideally it would be but the breaking type signature changes have made it difficult to achieve. It should be at least runtime compatible with v15, but I haven't spent time investigating making it type safe for v15

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.

Typescript error in plugin.d.ts for composeMiddlewareFns
2 participants