@types/react 18.3.29 → 18.3.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
react v18.3/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for react (https://react.dev/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react/v18.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 19 May 2026 17:48:56 GMT
11
+ * Last updated: Mon, 01 Jun 2026 18:00:20 GMT
12
12
  * Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
react v18.3/index.d.ts CHANGED
@@ -4284,7 +4284,6 @@ declare namespace React {
4284
4284
  digest?: string | null;
4285
4285
  }
4286
4286
 
4287
- // Keep in sync with JSX namespace in ./jsx-runtime.d.ts and ./jsx-dev-runtime.d.ts
4288
4287
  namespace JSX {
4289
4288
  type ElementType = GlobalJSXElementType;
4290
4289
  interface Element extends GlobalJSXElement {}
@@ -1,17 +1,5 @@
1
1
  import * as React from "./";
2
- export { Fragment } from "./";
3
-
4
- export namespace JSX {
5
- type ElementType = React.JSX.ElementType;
6
- interface Element extends React.JSX.Element {}
7
- interface ElementClass extends React.JSX.ElementClass {}
8
- interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
9
- interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
10
- type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
11
- interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
12
- interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
13
- interface IntrinsicElements extends React.JSX.IntrinsicElements {}
14
- }
2
+ export { Fragment, JSX } from "./";
15
3
 
16
4
  export interface JSXSource {
17
5
  /**
@@ -1,17 +1,5 @@
1
1
  import * as React from "./";
2
- export { Fragment } from "./";
3
-
4
- export namespace JSX {
5
- type ElementType = React.JSX.ElementType;
6
- interface Element extends React.JSX.Element {}
7
- interface ElementClass extends React.JSX.ElementClass {}
8
- interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
9
- interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
10
- type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
11
- interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
12
- interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
13
- interface IntrinsicElements extends React.JSX.IntrinsicElements {}
14
- }
2
+ export { Fragment, JSX } from "./";
15
3
 
16
4
  /**
17
5
  * Create a React element.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.3.29",
3
+ "version": "18.3.30",
4
4
  "description": "TypeScript definitions for react",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -201,6 +201,6 @@
201
201
  "csstype": "^3.2.2"
202
202
  },
203
203
  "peerDependencies": {},
204
- "typesPublisherContentHash": "9a2db63fba19867eecedffb70e57174fd752484350b91d6c40423acfc18378a1",
204
+ "typesPublisherContentHash": "5bd63ddf1aad3252c72a4c7ce278c85f2af05ccf91c0405d4c8ff1aa583e401d",
205
205
  "typeScriptVersion": "5.3"
206
206
  }
@@ -4284,7 +4284,6 @@ declare namespace React {
4284
4284
  digest?: string | null;
4285
4285
  }
4286
4286
 
4287
- // Keep in sync with JSX namespace in ./jsx-runtime.d.ts and ./jsx-dev-runtime.d.ts
4288
4287
  namespace JSX {
4289
4288
  interface Element extends GlobalJSXElement {}
4290
4289
  interface ElementClass extends GlobalJSXElementClass {}
@@ -1,16 +1,5 @@
1
1
  import * as React from "./";
2
- export { Fragment } from "./";
3
-
4
- export namespace JSX {
5
- interface Element extends React.JSX.Element {}
6
- interface ElementClass extends React.JSX.ElementClass {}
7
- interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
8
- interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
9
- type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
10
- interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
11
- interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
12
- interface IntrinsicElements extends React.JSX.IntrinsicElements {}
13
- }
2
+ export { Fragment, JSX } from "./";
14
3
 
15
4
  export interface JSXSource {
16
5
  /**
@@ -1,16 +1,5 @@
1
1
  import * as React from "./";
2
- export { Fragment } from "./";
3
-
4
- export namespace JSX {
5
- interface Element extends React.JSX.Element {}
6
- interface ElementClass extends React.JSX.ElementClass {}
7
- interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
8
- interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
9
- type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
10
- interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
11
- interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
12
- interface IntrinsicElements extends React.JSX.IntrinsicElements {}
13
- }
2
+ export { Fragment, JSX } from "./";
14
3
 
15
4
  /**
16
5
  * Create a React element.