Skip to content

Commit

Permalink
tstypes: Use any as BREAK type. (#2135)
Browse files Browse the repository at this point in the history
Otherwise, TS will reposrt errors when a visit function only conditionally returns BREAK (not all paths return a value error)
  • Loading branch information
Jackson Kearl authored and IvanGoncharov committed Aug 27, 2019
1 parent 175f989 commit 27e855a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tstypes/language/visitor.d.ts
Expand Up @@ -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
Expand Down

0 comments on commit 27e855a

Please sign in to comment.