Skip to content

Enable Flow typings on errors tests + Fix typing for Error constructor #1582

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

Merged
merged 1 commit into from
Nov 21, 2018

Conversation

IvanGoncharov
Copy link
Member

No description provided.

@@ -22,7 +22,7 @@ import type { Source } from '../language/source';
declare class GraphQLError extends Error {
constructor(
message: string,
nodes?: $ReadOnlyArray<ASTNode> | ASTNode | void,
nodes?: $ReadOnlyArray<ASTNode> | ASTNode | void | null,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All other arguments support null so there is no reason why nodes accepts undefined but not the null.

@IvanGoncharov IvanGoncharov merged commit f0ae3f4 into graphql:master Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants