Provide a stronger type for the parent of a variable declaration.

This commit is contained in:
Cyrus Najmabadi
2014-12-16 18:54:21 -08:00
parent 7f893f9b9a
commit 908d4f61e6

View File

@@ -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