Skip to content

Commit 68a39e5

Browse files
author
Sebastian Silbermann
committed
Add JSX.ElementType to automatic runtime
1 parent 51b2871 commit 68a39e5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

types/react/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3125,6 +3125,7 @@ declare namespace React {
31253125
componentStack: string;
31263126
}
31273127

3128+
// Keep in sync with JSX namespace in ./jsx-runtime.d.ts and ./jsx-dev-runtime.d.ts
31283129
namespace JSX {
31293130
type ElementType = GlobalJSXElementType;
31303131
interface Element extends GlobalJSXElement {}

types/react/jsx-dev-runtime.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as React from './';
22

33
export namespace JSX {
4+
type ElementType = React.JSX.ElementType;
45
interface Element extends React.JSX.Element {}
56
interface ElementClass extends React.JSX.ElementClass {}
67
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}

types/react/jsx-runtime.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as React from './';
22

33
export namespace JSX {
4+
type ElementType = React.JSX.ElementType;
45
interface Element extends React.JSX.Element {}
56
interface ElementClass extends React.JSX.ElementClass {}
67
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}

0 commit comments

Comments
 (0)