aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tsutils/util/control-flow.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/tsutils/util/control-flow.d.ts')
-rw-r--r--node_modules/tsutils/util/control-flow.d.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/tsutils/util/control-flow.d.ts b/node_modules/tsutils/util/control-flow.d.ts
index 58756b090..f7c101d82 100644
--- a/node_modules/tsutils/util/control-flow.d.ts
+++ b/node_modules/tsutils/util/control-flow.d.ts
@@ -1,2 +1,9 @@
import * as ts from 'typescript';
export declare function endsControlFlow(statement: ts.Statement | ts.BlockLike): boolean;
+export declare type ControlFlowStatement = ts.BreakStatement | ts.ContinueStatement | ts.ReturnStatement | ts.ThrowStatement;
+export interface ControlFlowEnd {
+ readonly statements: ReadonlyArray<ControlFlowStatement>;
+ readonly end: boolean;
+}
+export declare function getControlFlowEnd(statement: ts.Statement | ts.BlockLike): ControlFlowEnd;
+export declare function getControlFlowEnd(statement: ts.Statement | ts.BlockLike, label?: ts.Identifier): ControlFlowEnd;