Skip to content

Commit 8bd9fda

Browse files
authored
visit return any instead of mixed. (#1159)
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.
1 parent 9d8b297 commit 8bd9fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/language/visitor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export function visit(
225225
root: ASTNode,
226226
visitor: Visitor<ASTKindToNode>,
227227
visitorKeys: VisitorKeyMap<ASTKindToNode> = QueryDocumentKeys,
228-
): mixed {
228+
): any {
229229
/* eslint-disable no-undef-init */
230230
let stack: any = undefined;
231231
let inArray = Array.isArray(root);

0 commit comments

Comments
 (0)