@types/react-dom 18.2.13 → 18.2.15
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 +2 -3
- react-dom/canary.d.ts +6 -6
- react-dom/index.d.ts +0 -12
- react-dom/package.json +22 -22
react-dom/README.md
CHANGED
@@ -2,15 +2,14 @@
|
|
2
2
|
> `npm install --save @types/react-dom`
|
3
3
|
|
4
4
|
# Summary
|
5
|
-
This package contains type definitions for
|
5
|
+
This package contains type definitions for react-dom (https://reactjs.org).
|
6
6
|
|
7
7
|
# Details
|
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: Tue,
|
11
|
+
* Last updated: Tue, 07 Nov 2023 20:08:00 GMT
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
|
-
* Global values: `ReactDOM`, `ReactDOMServer`
|
14
13
|
|
15
14
|
# Credits
|
16
15
|
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [MartynasZilinskas](https://github.com/MartynasZilinskas), [Josh Rutherford](https://github.com/theruther4d), [Jessica Franco](https://github.com/Jessidhia), and [Sebastian Silbermann](https://github.com/eps1lon).
|
react-dom/canary.d.ts
CHANGED
@@ -128,15 +128,15 @@ declare module "." {
|
|
128
128
|
function useFormStatus(): FormStatus;
|
129
129
|
|
130
130
|
function useFormState<State>(
|
131
|
-
action: (state: State) => Promise<State>,
|
132
|
-
initialState: State
|
131
|
+
action: (state: Awaited<State>) => State | Promise<State>,
|
132
|
+
initialState: Awaited<State>,
|
133
133
|
permalink?: string,
|
134
|
-
): [state: State
|
134
|
+
): [state: Awaited<State>, dispatch: () => void];
|
135
135
|
function useFormState<State, Payload>(
|
136
|
-
action: (state: State
|
137
|
-
initialState: State
|
136
|
+
action: (state: Awaited<State>, payload: Payload) => State | Promise<State>,
|
137
|
+
initialState: Awaited<State>,
|
138
138
|
permalink?: string,
|
139
|
-
): [state: State
|
139
|
+
): [state: Awaited<State>, dispatch: (payload: Payload) => void];
|
140
140
|
}
|
141
141
|
|
142
142
|
declare module "./client" {
|
react-dom/index.d.ts
CHANGED
@@ -1,15 +1,3 @@
|
|
1
|
-
// Type definitions for React (react-dom) 18.2
|
2
|
-
// Project: https://reactjs.org
|
3
|
-
// Definitions by: Asana <https://asana.com>
|
4
|
-
// AssureSign <http://www.assuresign.com>
|
5
|
-
// Microsoft <https://microsoft.com>
|
6
|
-
// MartynasZilinskas <https://github.com/MartynasZilinskas>
|
7
|
-
// Josh Rutherford <https://github.com/theruther4d>
|
8
|
-
// Jessica Franco <https://github.com/Jessidhia>
|
9
|
-
// Sebastian Silbermann <https://github.com/eps1lon>
|
10
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
11
|
-
// TypeScript Version: 2.8
|
12
|
-
|
13
1
|
// NOTE: Users of the `experimental` builds of React should add a reference
|
14
2
|
// to 'react-dom/experimental' in their project. See experimental.d.ts's top comment
|
15
3
|
// for reference and documentation on how exactly to do it.
|
react-dom/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "18.2.
|
4
|
-
"description": "TypeScript definitions for
|
3
|
+
"version": "18.2.15",
|
4
|
+
"description": "TypeScript definitions for react-dom",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
|
6
6
|
"license": "MIT",
|
7
7
|
"contributors": [
|
@@ -19,38 +19,27 @@
|
|
19
19
|
},
|
20
20
|
{
|
21
21
|
"name": "MartynasZilinskas",
|
22
|
-
"
|
23
|
-
"
|
22
|
+
"githubUsername": "MartynasZilinskas",
|
23
|
+
"url": "https://github.com/MartynasZilinskas"
|
24
24
|
},
|
25
25
|
{
|
26
26
|
"name": "Josh Rutherford",
|
27
|
-
"
|
28
|
-
"
|
27
|
+
"githubUsername": "theruther4d",
|
28
|
+
"url": "https://github.com/theruther4d"
|
29
29
|
},
|
30
30
|
{
|
31
31
|
"name": "Jessica Franco",
|
32
|
-
"
|
33
|
-
"
|
32
|
+
"githubUsername": "Jessidhia",
|
33
|
+
"url": "https://github.com/Jessidhia"
|
34
34
|
},
|
35
35
|
{
|
36
36
|
"name": "Sebastian Silbermann",
|
37
|
-
"
|
38
|
-
"
|
37
|
+
"githubUsername": "eps1lon",
|
38
|
+
"url": "https://github.com/eps1lon"
|
39
39
|
}
|
40
40
|
],
|
41
41
|
"main": "",
|
42
42
|
"types": "index.d.ts",
|
43
|
-
"repository": {
|
44
|
-
"type": "git",
|
45
|
-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
46
|
-
"directory": "types/react-dom"
|
47
|
-
},
|
48
|
-
"scripts": {},
|
49
|
-
"dependencies": {
|
50
|
-
"@types/react": "*"
|
51
|
-
},
|
52
|
-
"typesPublisherContentHash": "9493aa01c7194270c928c9c5389b1724b9206c2ae267d9eb5e82551f54d9ba25",
|
53
|
-
"typeScriptVersion": "4.5",
|
54
43
|
"exports": {
|
55
44
|
".": {
|
56
45
|
"types": {
|
@@ -83,5 +72,16 @@
|
|
83
72
|
}
|
84
73
|
},
|
85
74
|
"./package.json": "./package.json"
|
86
|
-
}
|
75
|
+
},
|
76
|
+
"repository": {
|
77
|
+
"type": "git",
|
78
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
79
|
+
"directory": "types/react-dom"
|
80
|
+
},
|
81
|
+
"scripts": {},
|
82
|
+
"dependencies": {
|
83
|
+
"@types/react": "*"
|
84
|
+
},
|
85
|
+
"typesPublisherContentHash": "89d2db51d9354952a5871fe6343896615ca4e228ef8582ba6fb69ec1c5d89456",
|
86
|
+
"typeScriptVersion": "4.5"
|
87
87
|
}
|