@types/react 18.3.16 → 18.3.17

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: Wed, 11 Dec 2024 02:54:10 GMT
11
+ * Last updated: Mon, 16 Dec 2024 12:44:17 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
@@ -2010,7 +2010,7 @@ declare namespace React {
2010
2010
  * @version 16.8.0
2011
2011
  * @see {@link https://react.dev/reference/react/useRef}
2012
2012
  */
2013
- function useRef<T = undefined>(): MutableRefObject<T | undefined>;
2013
+ function useRef<T = undefined>(initialValue?: undefined): MutableRefObject<T | undefined>;
2014
2014
  /**
2015
2015
  * The signature is identical to `useEffect`, but it fires synchronously after all DOM mutations.
2016
2016
  * Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.3.16",
3
+ "version": "18.3.17",
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.0.2"
202
202
  },
203
203
  "peerDependencies": {},
204
- "typesPublisherContentHash": "0c1b68de2134ad9790e784b950711ed8c266328d5eeffe395e07963c8b58d037",
204
+ "typesPublisherContentHash": "f8c1650d1099e4f098246067ac4105b0fa376c5cb8197c08daab74d4dc2defbd",
205
205
  "typeScriptVersion": "5.0"
206
206
  }
@@ -2011,7 +2011,7 @@ declare namespace React {
2011
2011
  * @version 16.8.0
2012
2012
  * @see {@link https://react.dev/reference/react/useRef}
2013
2013
  */
2014
- function useRef<T = undefined>(): MutableRefObject<T | undefined>;
2014
+ function useRef<T = undefined>(initialValue?: undefined): MutableRefObject<T | undefined>;
2015
2015
  /**
2016
2016
  * The signature is identical to `useEffect`, but it fires synchronously after all DOM mutations.
2017
2017
  * Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside