From 30c2d46d81a9e7f5d619f1e1cc7ebdcab4103d07 Mon Sep 17 00:00:00 2001 From: Jackson Kearl Date: Mon, 26 Aug 2019 11:27:01 -0700 Subject: [PATCH] Use `any` as BREAK type. Otherwise, TS will reposrt errors when a visit function only conditionally returns BREAK (not all paths return a value error) --- tstypes/language/visitor.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tstypes/language/visitor.d.ts b/tstypes/language/visitor.d.ts index 58dbd18687..a71c01bba9 100644 --- a/tstypes/language/visitor.d.ts +++ b/tstypes/language/visitor.d.ts @@ -140,7 +140,7 @@ export const QueryDocumentKeys: { InputObjectTypeExtension: ['name', 'directives', 'fields']; }; -export const BREAK: {}; +export const BREAK: any; /** * visit() will walk through an AST using a depth first traversal, calling