Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Add typedef for stricter compiler check
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya committed Mar 4, 2017
1 parent 4d924b3 commit 5542736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5542736

Please sign in to comment.