@@ -1372,8 +1372,9 @@ declare namespace ts {
13721372 readonly kind: SyntaxKind.JsxAttribute;
13731373 readonly parent: JsxAttributes;
13741374 readonly name: Identifier;
1375- readonly initializer?: StringLiteral | JsxExpression ;
1375+ readonly initializer?: JsxAttributeValue ;
13761376 }
1377+ export type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
13771378 export interface JsxSpreadAttribute extends ObjectLiteralElement {
13781379 readonly kind: SyntaxKind.JsxSpreadAttribute;
13791380 readonly parent: JsxAttributes;
@@ -3691,8 +3692,8 @@ declare namespace ts {
36913692 createJsxOpeningFragment(): JsxOpeningFragment;
36923693 createJsxJsxClosingFragment(): JsxClosingFragment;
36933694 updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment): JsxFragment;
3694- createJsxAttribute(name: Identifier, initializer: StringLiteral | JsxExpression | undefined): JsxAttribute;
3695- updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: StringLiteral | JsxExpression | undefined): JsxAttribute;
3695+ createJsxAttribute(name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
3696+ updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
36963697 createJsxAttributes(properties: readonly JsxAttributeLike[]): JsxAttributes;
36973698 updateJsxAttributes(node: JsxAttributes, properties: readonly JsxAttributeLike[]): JsxAttributes;
36983699 createJsxSpreadAttribute(expression: Expression): JsxSpreadAttribute;
@@ -11189,9 +11190,9 @@ declare namespace ts {
1118911190 /** @deprecated Use `factory.updateJsxFragment` or the factory supplied by your transformation context instead. */
1119011191 const updateJsxFragment: (node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment) => JsxFragment;
1119111192 /** @deprecated Use `factory.createJsxAttribute` or the factory supplied by your transformation context instead. */
11192- const createJsxAttribute: (name: Identifier, initializer: StringLiteral | JsxExpression | undefined) => JsxAttribute;
11193+ const createJsxAttribute: (name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
1119311194 /** @deprecated Use `factory.updateJsxAttribute` or the factory supplied by your transformation context instead. */
11194- const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer: StringLiteral | JsxExpression | undefined) => JsxAttribute;
11195+ const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
1119511196 /** @deprecated Use `factory.createJsxAttributes` or the factory supplied by your transformation context instead. */
1119611197 const createJsxAttributes: (properties: readonly JsxAttributeLike[]) => JsxAttributes;
1119711198 /** @deprecated Use `factory.updateJsxAttributes` or the factory supplied by your transformation context instead. */
0 commit comments