From 55427368a5dd72a11edf6524216dd7d06c61f016 Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Fri, 3 Mar 2017 19:21:44 -0500 Subject: [PATCH] Add typedef for stricter compiler check --- src/language/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/language/utils.ts b/src/language/utils.ts index 8baf0d1ce24..58c43f1d885 100644 --- a/src/language/utils.ts +++ b/src/language/utils.ts @@ -107,7 +107,7 @@ export function isBlockScopedBindingElement(node: ts.BindingElement): boolean { } export function getBindingElementVariableDeclaration(node: ts.BindingElement): ts.VariableDeclaration | null { - let currentParent = node.parent!; + let currentParent: ts.Node = node.parent!; while (currentParent.kind !== ts.SyntaxKind.VariableDeclaration) { if (currentParent.parent == null) { return null; // function parameter, no variable declaration