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

TS: isSpecifiedScalarType incorrectly refines type #2153

Closed
IvanGoncharov opened this issue Sep 3, 2019 · 1 comment · Fixed by #2196
Closed

TS: isSpecifiedScalarType incorrectly refines type #2153

IvanGoncharov opened this issue Sep 3, 2019 · 1 comment · Fixed by #2196
Labels

Comments

@IvanGoncharov
Copy link
Member

Reported by @yaacovCR in #2104 (comment)

This line -- I think -- causes typescript to assume that a type that fails isSpecifiedScalarType test is actually not a GraphqlScalarType at all.

export function isSpecifiedScalarType(type: any): type is GraphQLScalarType;

@IvanGoncharov
Copy link
Member Author

Fixed in 14.5.8 📦
Long term solutions are proposed in #2194 and #2196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant