@types/react 18.3.29 → 18.3.31

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: Fri, 05 Jun 2026 20:10:10 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
@@ -458,7 +458,7 @@ declare namespace React {
458
458
  *
459
459
  * Where {@link ReactElement} only represents JSX, `ReactNode` represents everything that can be rendered.
460
460
  *
461
- * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/react-types/reactnode/ React TypeScript Cheatsheet}
461
+ * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/reference/reactnode/ React TypeScript Cheatsheet}
462
462
  *
463
463
  * @example
464
464
  *
@@ -1646,7 +1646,7 @@ declare namespace React {
1646
1646
  * instead of this type, as they let you be explicit about whether or not to include
1647
1647
  * the `ref` prop.
1648
1648
  *
1649
- * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/react-types/componentprops/ React TypeScript Cheatsheet}
1649
+ * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/reference/ComponentProps React TypeScript Cheatsheet}
1650
1650
  *
1651
1651
  * @example
1652
1652
  *
@@ -1674,7 +1674,7 @@ declare namespace React {
1674
1674
  * passed a string, indicating a DOM element (e.g. 'div', 'span', etc.) or the
1675
1675
  * type of a React component.
1676
1676
  *
1677
- * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/react-types/componentprops/ React TypeScript Cheatsheet}
1677
+ * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/reference/ComponentProps React TypeScript Cheatsheet}
1678
1678
  *
1679
1679
  * @example
1680
1680
  *
@@ -1721,7 +1721,7 @@ declare namespace React {
1721
1721
  * passed a string, indicating a DOM element (e.g. 'div', 'span', etc.) or the
1722
1722
  * type of a React component.
1723
1723
  *
1724
- * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/react-types/componentprops/ React TypeScript Cheatsheet}
1724
+ * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/reference/ComponentProps React TypeScript Cheatsheet}
1725
1725
  *
1726
1726
  * @example
1727
1727
  *
@@ -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.31",
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": "8ee185c606f82e91e22bd6c41a581f0b284f09472333a0d30863f96a4e72d74a",
205
205
  "typeScriptVersion": "5.3"
206
206
  }
@@ -459,7 +459,7 @@ declare namespace React {
459
459
  *
460
460
  * Where {@link ReactElement} only represents JSX, `ReactNode` represents everything that can be rendered.
461
461
  *
462
- * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/react-types/reactnode/ React TypeScript Cheatsheet}
462
+ * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/reference/reactnode/ React TypeScript Cheatsheet}
463
463
  *
464
464
  * @example
465
465
  *
@@ -1647,7 +1647,7 @@ declare namespace React {
1647
1647
  * instead of this type, as they let you be explicit about whether or not to include
1648
1648
  * the `ref` prop.
1649
1649
  *
1650
- * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/react-types/componentprops/ React TypeScript Cheatsheet}
1650
+ * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/reference/ComponentProps React TypeScript Cheatsheet}
1651
1651
  *
1652
1652
  * @example
1653
1653
  *
@@ -1675,7 +1675,7 @@ declare namespace React {
1675
1675
  * passed a string, indicating a DOM element (e.g. 'div', 'span', etc.) or the
1676
1676
  * type of a React component.
1677
1677
  *
1678
- * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/react-types/componentprops/ React TypeScript Cheatsheet}
1678
+ * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/reference/ComponentProps React TypeScript Cheatsheet}
1679
1679
  *
1680
1680
  * @example
1681
1681
  *
@@ -1722,7 +1722,7 @@ declare namespace React {
1722
1722
  * passed a string, indicating a DOM element (e.g. 'div', 'span', etc.) or the
1723
1723
  * type of a React component.
1724
1724
  *
1725
- * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/react-types/componentprops/ React TypeScript Cheatsheet}
1725
+ * @see {@link https://react-typescript-cheatsheet.netlify.app/docs/reference/ComponentProps React TypeScript Cheatsheet}
1726
1726
  *
1727
1727
  * @example
1728
1728
  *
@@ -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.