Skip to content

Commit

Permalink
visit return any instead of mixed. (#1159)
Browse files Browse the repository at this point in the history
Changing this from the (untyped) any to mixed is too severe a breaking change. Changing back to any ensures the visitor functions themselves remain checked but does not cause downstream usage to fail.
  • Loading branch information
leebyron authored Dec 17, 2017
1 parent 9d8b297 commit 8bd9fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language/visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export function visit(
root: ASTNode,
visitor: Visitor<ASTKindToNode>,
visitorKeys: VisitorKeyMap<ASTKindToNode> = QueryDocumentKeys,
): mixed {
): any {
/* eslint-disable no-undef-init */
let stack: any = undefined;
let inArray = Array.isArray(root);
Expand Down

0 comments on commit 8bd9fda

Please sign in to comment.