@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 +1 -1
- react/experimental.d.ts +4 -1
- react/package.json +2 -2
- react/ts5.0/experimental.d.ts +4 -1
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
|
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
|
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.
|
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": "
|
161
|
+
"typesPublisherContentHash": "ce0153f6bb1a5154576d9159e1711034f75efa459f9b1e0c773d78e6e18a9fda",
|
162
162
|
"typeScriptVersion": "4.3",
|
163
163
|
"exports": {
|
164
164
|
".": {
|
react/ts5.0/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
|
138
|
+
reducer: (state: State, action: Action) => State,
|
136
139
|
): [State, (action: Action) => void];
|
137
140
|
}
|