Skip to content

Commit d75b828

Browse files
jordanoverbyejoverbye-alassian
andauthoredJun 3, 2024··
Add ElementType to the global compiled JSX namespace (#1678)
* Add ElementType to JSX namespace * changeset --------- Co-authored-by: Jordan Overbye <joverbye@atlassian.com>
1 parent a4a5075 commit d75b828

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎.changeset/plenty-olives-act.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@compiled/react': patch
3+
---
4+
5+
Add `ElementType` to the global compiled JSX namespace

‎packages/react/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export const jsx = createElement;
3939
export namespace jsx {
4040
export namespace JSX {
4141
export type Element = CompiledJSX.Element;
42+
export type ElementType = CompiledJSX.ElementType;
4243
export type ElementClass = CompiledJSX.ElementClass;
4344
export type ElementAttributesProperty = CompiledJSX.ElementAttributesProperty;
4445
export type ElementChildrenAttribute = CompiledJSX.ElementChildrenAttribute;

0 commit comments

Comments
 (0)
Please sign in to comment.