Skip to content

Commit 1511dd9

Browse files
committed
Fix parent type of JsxAttributes
1 parent 4a1cf5d commit 1511dd9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/compiler/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,6 +1504,7 @@ namespace ts {
15041504
export type JsxTagNameExpression = PrimaryExpression | PropertyAccessExpression;
15051505

15061506
export interface JsxAttributes extends ObjectLiteralExpressionBase<JsxAttributeLike> {
1507+
parent?: JsxOpeningLikeElement;
15071508
}
15081509

15091510
/// The opening element of a <Tag>...</Tag> JsxElement
@@ -1523,15 +1524,15 @@ namespace ts {
15231524

15241525
export interface JsxAttribute extends ObjectLiteralElement {
15251526
kind: SyntaxKind.JsxAttribute;
1526-
parent?: JsxOpeningLikeElement;
1527+
parent?: JsxAttributes;
15271528
name: Identifier;
15281529
/// JSX attribute initializers are optional; <X y /> is sugar for <X y={true} />
15291530
initializer?: StringLiteral | JsxExpression;
15301531
}
15311532

15321533
export interface JsxSpreadAttribute extends ObjectLiteralElement {
15331534
kind: SyntaxKind.JsxSpreadAttribute;
1534-
parent?: JsxOpeningLikeElement;
1535+
parent?: JsxAttributes;
15351536
expression: Expression;
15361537
}
15371538

0 commit comments

Comments
 (0)