@@ -1388,8 +1388,9 @@ declare namespace ts {
13881388 readonly kind: SyntaxKind.JsxAttribute;
13891389 readonly parent: JsxAttributes;
13901390 readonly name: Identifier;
1391- readonly initializer?: StringLiteral | JsxExpression ;
1391+ readonly initializer?: JsxAttributeValue ;
13921392 }
1393+ export type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
13931394 export interface JsxSpreadAttribute extends ObjectLiteralElement {
13941395 readonly kind: SyntaxKind.JsxSpreadAttribute;
13951396 readonly parent: JsxAttributes;
@@ -3746,8 +3747,8 @@ declare namespace ts {
37463747 createJsxOpeningFragment(): JsxOpeningFragment;
37473748 createJsxJsxClosingFragment(): JsxClosingFragment;
37483749 updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment): JsxFragment;
3749- createJsxAttribute(name: Identifier, initializer: StringLiteral | JsxExpression | undefined): JsxAttribute;
3750- updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: StringLiteral | JsxExpression | undefined): JsxAttribute;
3750+ createJsxAttribute(name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
3751+ updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
37513752 createJsxAttributes(properties: readonly JsxAttributeLike[]): JsxAttributes;
37523753 updateJsxAttributes(node: JsxAttributes, properties: readonly JsxAttributeLike[]): JsxAttributes;
37533754 createJsxSpreadAttribute(expression: Expression): JsxSpreadAttribute;
@@ -11339,9 +11340,9 @@ declare namespace ts {
1133911340 /** @deprecated Use `factory.updateJsxFragment` or the factory supplied by your transformation context instead. */
1134011341 const updateJsxFragment: (node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment) => JsxFragment;
1134111342 /** @deprecated Use `factory.createJsxAttribute` or the factory supplied by your transformation context instead. */
11342- const createJsxAttribute: (name: Identifier, initializer: StringLiteral | JsxExpression | undefined) => JsxAttribute;
11343+ const createJsxAttribute: (name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
1134311344 /** @deprecated Use `factory.updateJsxAttribute` or the factory supplied by your transformation context instead. */
11344- const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer: StringLiteral | JsxExpression | undefined) => JsxAttribute;
11345+ const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
1134511346 /** @deprecated Use `factory.createJsxAttributes` or the factory supplied by your transformation context instead. */
1134611347 const createJsxAttributes: (properties: readonly JsxAttributeLike[]) => JsxAttributes;
1134711348 /** @deprecated Use `factory.updateJsxAttributes` or the factory supplied by your transformation context instead. */
0 commit comments