@types/react-dom 18.2.1 → 18.2.2
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-dom/README.md +1 -1
- react-dom/experimental.d.ts +19 -1
- react-dom/package.json +2 -2
react-dom/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for React (react-dom) (https://reactjs.or
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Wed, 03 May 2023 16:02:46 GMT
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
13
|
* Global values: `ReactDOM`, `ReactDOMServer`
|
14
14
|
|
react-dom/experimental.d.ts
CHANGED
@@ -32,4 +32,22 @@ import ReactDOM = require('./next');
|
|
32
32
|
|
33
33
|
export {};
|
34
34
|
|
35
|
-
declare module '.' {
|
35
|
+
declare module '.' {
|
36
|
+
interface FormStatusNotPending {
|
37
|
+
pending: false;
|
38
|
+
data: null;
|
39
|
+
method: null;
|
40
|
+
action: null;
|
41
|
+
}
|
42
|
+
|
43
|
+
interface FormStatusPending {
|
44
|
+
pending: true;
|
45
|
+
data: FormData;
|
46
|
+
method: string;
|
47
|
+
action: string | ((formData: FormData) => void | Promise<void>);
|
48
|
+
}
|
49
|
+
|
50
|
+
type FormStatus = FormStatusPending | FormStatusNotPending;
|
51
|
+
|
52
|
+
function experimental_useFormStatus(): FormStatus;
|
53
|
+
}
|
react-dom/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "18.2.
|
3
|
+
"version": "18.2.2",
|
4
4
|
"description": "TypeScript definitions for React (react-dom)",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
|
6
6
|
"license": "MIT",
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"dependencies": {
|
50
50
|
"@types/react": "*"
|
51
51
|
},
|
52
|
-
"typesPublisherContentHash": "
|
52
|
+
"typesPublisherContentHash": "f42e45fd4c901c41267027e4de1281542c2d1458806a2d0a3e6142fd996ef8ee",
|
53
53
|
"typeScriptVersion": "4.3",
|
54
54
|
"exports": {
|
55
55
|
".": {
|