@types/react 18.2.2 → 18.2.3

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: Wed, 03 May 2023 20:32:43 GMT
11
+ * Last updated: Thu, 04 May 2023 05:32:46 GMT
12
12
  * Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler)
13
13
  * Global values: `React`
14
14
 
react/experimental.d.ts CHANGED
@@ -123,4 +123,9 @@ declare module '.' {
123
123
  */
124
124
  (callback: () => Promise<VoidOrUndefinedOnly>): void;
125
125
  }
126
+
127
+ function experimental_useOptimistic<State, Action>(
128
+ passthrough: State,
129
+ reducer?: (state: State, action: Action) => State,
130
+ ): [State, (action: Action) => void];
126
131
  }
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.2",
3
+ "version": "18.2.3",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -158,7 +158,7 @@
158
158
  "@types/scheduler": "*",
159
159
  "csstype": "^3.0.2"
160
160
  },
161
- "typesPublisherContentHash": "e929af8a16a9eb46475643cee5493bf45dcf962806ff8ddc1e0200888ff4fed2",
161
+ "typesPublisherContentHash": "87bcd903c06e06e52bd185ab43724a84c9384b7f29c2f1f1de3d6fcae9667f66",
162
162
  "typeScriptVersion": "4.3",
163
163
  "exports": {
164
164
  ".": {
@@ -123,4 +123,9 @@ declare module '.' {
123
123
  */
124
124
  (callback: () => Promise<VoidOrUndefinedOnly>): void;
125
125
  }
126
+
127
+ function experimental_useOptimistic<State, Action>(
128
+ passthrough: State,
129
+ reducer?: (state: State, action: Action) => State,
130
+ ): [State, (action: Action) => void];
126
131
  }