@types/react 19.1.3 → 19.1.4

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, 06 May 2025 02:14:23 GMT
11
+ * Last updated: Mon, 12 May 2025 19:32:10 GMT
12
12
  * Dependencies: [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
react/index.d.ts CHANGED
@@ -1684,20 +1684,6 @@ declare namespace React {
1684
1684
  reducer: (prevState: S, ...args: A) => S,
1685
1685
  initialState: S,
1686
1686
  ): [S, ActionDispatch<A>];
1687
- /**
1688
- * An alternative to `useState`.
1689
- *
1690
- * `useReducer` is usually preferable to `useState` when you have complex state logic that involves
1691
- * multiple sub-values. It also lets you optimize performance for components that trigger deep
1692
- * updates because you can pass `dispatch` down instead of callbacks.
1693
- *
1694
- * @version 16.8.0
1695
- * @see {@link https://react.dev/reference/react/useReducer}
1696
- */
1697
- function useReducer<S, A extends AnyActionArg>(
1698
- reducer: (prevState: S, ...args: A) => S,
1699
- initialState: S,
1700
- ): [S, ActionDispatch<A>];
1701
1687
  /**
1702
1688
  * An alternative to `useState`.
1703
1689
  *
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "19.1.3",
3
+ "version": "19.1.4",
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
  "csstype": "^3.0.2"
206
206
  },
207
207
  "peerDependencies": {},
208
- "typesPublisherContentHash": "f88213f6b3d5f61426ff23a289a80603eef0650414c072e2f9e5bc47c8932a63",
208
+ "typesPublisherContentHash": "314c1f08fc88f627aff39c5d112d447dc52e3174262c641967d172bd4f0b1f36",
209
209
  "typeScriptVersion": "5.1"
210
210
  }
react/ts5.0/index.d.ts CHANGED
@@ -1683,20 +1683,6 @@ declare namespace React {
1683
1683
  reducer: (prevState: S, ...args: A) => S,
1684
1684
  initialState: S,
1685
1685
  ): [S, ActionDispatch<A>];
1686
- /**
1687
- * An alternative to `useState`.
1688
- *
1689
- * `useReducer` is usually preferable to `useState` when you have complex state logic that involves
1690
- * multiple sub-values. It also lets you optimize performance for components that trigger deep
1691
- * updates because you can pass `dispatch` down instead of callbacks.
1692
- *
1693
- * @version 16.8.0
1694
- * @see {@link https://react.dev/reference/react/useReducer}
1695
- */
1696
- function useReducer<S, A extends AnyActionArg>(
1697
- reducer: (prevState: S, ...args: A) => S,
1698
- initialState: S,
1699
- ): [S, ActionDispatch<A>];
1700
1686
  /**
1701
1687
  * An alternative to `useState`.
1702
1688
  *