From d547a4a82756e36f9588eb9f37b67b9ee538c2e7 Mon Sep 17 00:00:00 2001 From: Lee Byron Date: Sat, 16 Dec 2017 17:36:23 -0800 Subject: [PATCH] visit return any instead of mixed. 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. --- src/language/visitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/language/visitor.js b/src/language/visitor.js index 5727896aed..31937548ee 100644 --- a/src/language/visitor.js +++ b/src/language/visitor.js @@ -225,7 +225,7 @@ export function visit( root: ASTNode, visitor: Visitor, visitorKeys: VisitorKeyMap = QueryDocumentKeys, -): mixed { +): any { /* eslint-disable no-undef-init */ let stack: any = undefined; let inArray = Array.isArray(root);