Fix parent type of JsxAttributes
This commit is contained in:
parent
4a1cf5d182
commit
1511dd9c24
1 changed files with 3 additions and 2 deletions
|
@ -1504,6 +1504,7 @@ namespace ts {
|
|||
export type JsxTagNameExpression = PrimaryExpression | PropertyAccessExpression;
|
||||
|
||||
export interface JsxAttributes extends ObjectLiteralExpressionBase<JsxAttributeLike> {
|
||||
parent?: JsxOpeningLikeElement;
|
||||
}
|
||||
|
||||
/// The opening element of a <Tag>...</Tag> 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; <X y /> is sugar for <X y={true} />
|
||||
initializer?: StringLiteral | JsxExpression;
|
||||
|
@ -1531,7 +1532,7 @@ namespace ts {
|
|||
|
||||
export interface JsxSpreadAttribute extends ObjectLiteralElement {
|
||||
kind: SyntaxKind.JsxSpreadAttribute;
|
||||
parent?: JsxOpeningLikeElement;
|
||||
parent?: JsxAttributes;
|
||||
expression: Expression;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue