From 1511dd9c241cf4f0f85fddaa2ebb5840ee27f16e Mon Sep 17 00:00:00 2001 From: Klaus Meinhardt Date: Thu, 2 Mar 2017 17:43:02 +0100 Subject: [PATCH] Fix parent type of JsxAttributes --- src/compiler/types.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 759d3cd41eb..42b8a140e4b 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -1504,6 +1504,7 @@ namespace ts { export type JsxTagNameExpression = PrimaryExpression | PropertyAccessExpression; export interface JsxAttributes extends ObjectLiteralExpressionBase { + parent?: JsxOpeningLikeElement; } /// The opening element of a ... JsxElement @@ -1523,7 +1524,7 @@ namespace ts { export interface JsxAttribute extends ObjectLiteralElement { kind: SyntaxKind.JsxAttribute; - parent?: JsxOpeningLikeElement; + parent?: JsxAttributes; name: Identifier; /// JSX attribute initializers are optional; is sugar for initializer?: StringLiteral | JsxExpression; @@ -1531,7 +1532,7 @@ namespace ts { export interface JsxSpreadAttribute extends ObjectLiteralElement { kind: SyntaxKind.JsxSpreadAttribute; - parent?: JsxOpeningLikeElement; + parent?: JsxAttributes; expression: Expression; }