From 908d4f61e6f683fc9c14e73e28da27719f0498ae Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Tue, 16 Dec 2014 18:54:21 -0800 Subject: [PATCH] Provide a stronger type for the parent of a variable declaration. --- src/compiler/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 815d2b23e51..8f48008b641 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -394,6 +394,7 @@ module ts { // SyntaxKind.VariableDeclaration export interface VariableDeclaration extends Declaration { + parent?: VariableDeclarationList; name: Identifier | BindingPattern; // Declared variable name type?: TypeNode; // Optional type annotation initializer?: Expression; // Optional initializer