Skip to content

Commit 27e855a

Browse files
Jackson KearlIvanGoncharov
authored andcommitted
tstypes: Use any as BREAK type. (#2135)
Otherwise, TS will reposrt errors when a visit function only conditionally returns BREAK (not all paths return a value error)
1 parent 175f989 commit 27e855a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tstypes/language/visitor.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const QueryDocumentKeys: {
140140
InputObjectTypeExtension: ['name', 'directives', 'fields'];
141141
};
142142

143-
export const BREAK: {};
143+
export const BREAK: any;
144144

145145
/**
146146
* visit() will walk through an AST using a depth first traversal, calling

0 commit comments

Comments
 (0)