@types/react 18.2.4 → 18.2.5

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: Thu, 04 May 2023 07:32:47 GMT
11
+ * Last updated: Thu, 04 May 2023 13:32:50 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
@@ -130,8 +130,11 @@ declare module '.' {
130
130
  (callback: () => Promise<VoidOrUndefinedOnly>): void;
131
131
  }
132
132
 
133
+ function experimental_useOptimistic<State>(
134
+ passthrough: State,
135
+ ): [State, (action: State | ((pendingState: State) => State)) => void];
133
136
  function experimental_useOptimistic<State, Action>(
134
137
  passthrough: State,
135
- reducer?: (state: State, action: Action) => State,
138
+ reducer: (state: State, action: Action) => State,
136
139
  ): [State, (action: Action) => void];
137
140
  }
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.4",
3
+ "version": "18.2.5",
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": "ae285a1f71e01ae214d0d07feb6897bda4d6ac1e892d2b4138170e851772d2c3",
161
+ "typesPublisherContentHash": "ce0153f6bb1a5154576d9159e1711034f75efa459f9b1e0c773d78e6e18a9fda",
162
162
  "typeScriptVersion": "4.3",
163
163
  "exports": {
164
164
  ".": {
@@ -130,8 +130,11 @@ declare module '.' {
130
130
  (callback: () => Promise<VoidOrUndefinedOnly>): void;
131
131
  }
132
132
 
133
+ function experimental_useOptimistic<State>(
134
+ passthrough: State,
135
+ ): [State, (action: State | ((pendingState: State) => State)) => void];
133
136
  function experimental_useOptimistic<State, Action>(
134
137
  passthrough: State,
135
- reducer?: (state: State, action: Action) => State,
138
+ reducer: (state: State, action: Action) => State,
136
139
  ): [State, (action: Action) => void];
137
140
  }