@types/react 18.3.4 → 18.3.6

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/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 20 Aug 2024 20:36:15 GMT
11
+ * Last updated: Mon, 16 Sep 2024 09:08:35 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/index.d.ts CHANGED
@@ -848,6 +848,12 @@ declare namespace React {
848
848
 
849
849
  /** A fallback react tree to show when a Suspense child (like React.lazy) suspends */
850
850
  fallback?: ReactNode;
851
+
852
+ /**
853
+ * A name for this Suspense boundary for instrumentation purposes.
854
+ * The name will help identify this boundary in React DevTools.
855
+ */
856
+ name?: string | undefined;
851
857
  }
852
858
 
853
859
  /**
@@ -1597,7 +1603,7 @@ declare namespace React {
1597
1603
  * ```
1598
1604
  */
1599
1605
  function forwardRef<T, P = {}>(
1600
- render: ForwardRefRenderFunction<T, P>,
1606
+ render: ForwardRefRenderFunction<T, PropsWithoutRef<P>>,
1601
1607
  ): ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
1602
1608
 
1603
1609
  /**
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.3.4",
3
+ "version": "18.3.6",
4
4
  "description": "TypeScript definitions for react",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -205,6 +205,6 @@
205
205
  "@types/prop-types": "*",
206
206
  "csstype": "^3.0.2"
207
207
  },
208
- "typesPublisherContentHash": "ba3791a79e7cc51baa23cc8bd3b97abbea13332ebe70a49c6ac36a1fa08f33f7",
208
+ "typesPublisherContentHash": "027b09cdc32079665a00cbf05a58524b9fd8c664a4882c37411b2f58f643cc0c",
209
209
  "typeScriptVersion": "4.8"
210
210
  }
react/ts5.0/index.d.ts CHANGED
@@ -849,6 +849,12 @@ declare namespace React {
849
849
 
850
850
  /** A fallback react tree to show when a Suspense child (like React.lazy) suspends */
851
851
  fallback?: ReactNode;
852
+
853
+ /**
854
+ * A name for this Suspense boundary for instrumentation purposes.
855
+ * The name will help identify this boundary in React DevTools.
856
+ */
857
+ name?: string | undefined;
852
858
  }
853
859
 
854
860
  /**
@@ -1598,7 +1604,7 @@ declare namespace React {
1598
1604
  * ```
1599
1605
  */
1600
1606
  function forwardRef<T, P = {}>(
1601
- render: ForwardRefRenderFunction<T, P>,
1607
+ render: ForwardRefRenderFunction<T, PropsWithoutRef<P>>,
1602
1608
  ): ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
1603
1609
 
1604
1610
  /**