@types/react-dom 17.0.4 → 17.0.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-dom/README.md +2 -2
- react-dom/index.d.ts +10 -7
- react-dom/package.json +7 -2
react-dom/README.md
CHANGED
@@ -8,9 +8,9 @@ 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: Thu, 13 May 2021 07:31:26 GMT
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
13
|
* Global values: `ReactDOM`, `ReactDOMNodeStream`, `ReactDOMServer`
|
14
14
|
|
15
15
|
# Credits
|
16
|
-
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),
|
16
|
+
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/index.d.ts
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
// MartynasZilinskas <https://github.com/MartynasZilinskas>
|
7
7
|
// Josh Rutherford <https://github.com/theruther4d>
|
8
8
|
// Jessica Franco <https://github.com/Jessidhia>
|
9
|
+
// Sebastian Silbermann <https://github.com/eps1lon>
|
9
10
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
10
11
|
// TypeScript Version: 2.8
|
11
12
|
|
@@ -53,49 +54,51 @@ export function unstable_renderSubtreeIntoContainer<P>(
|
|
53
54
|
container: Element,
|
54
55
|
callback?: (component?: Component<P, ComponentState> | Element) => any): Component<P, ComponentState> | Element | void;
|
55
56
|
|
57
|
+
export type Container = Element | Document | DocumentFragment;
|
58
|
+
|
56
59
|
export interface Renderer {
|
57
60
|
// Deprecated(render): The return value is deprecated.
|
58
61
|
// In future releases the render function's return type will be void.
|
59
62
|
|
60
63
|
<T extends Element>(
|
61
64
|
element: DOMElement<DOMAttributes<T>, T>,
|
62
|
-
container:
|
65
|
+
container: Container| null,
|
63
66
|
callback?: () => void
|
64
67
|
): T;
|
65
68
|
|
66
69
|
(
|
67
70
|
element: Array<DOMElement<DOMAttributes<any>, any>>,
|
68
|
-
container:
|
71
|
+
container: Container| null,
|
69
72
|
callback?: () => void
|
70
73
|
): Element;
|
71
74
|
|
72
75
|
(
|
73
76
|
element: SFCElement<any> | Array<SFCElement<any>>,
|
74
|
-
container:
|
77
|
+
container: Container| null,
|
75
78
|
callback?: () => void
|
76
79
|
): void;
|
77
80
|
|
78
81
|
<P, T extends Component<P, ComponentState>>(
|
79
82
|
element: CElement<P, T>,
|
80
|
-
container:
|
83
|
+
container: Container| null,
|
81
84
|
callback?: () => void
|
82
85
|
): T;
|
83
86
|
|
84
87
|
(
|
85
88
|
element: Array<CElement<any, Component<any, ComponentState>>>,
|
86
|
-
container:
|
89
|
+
container: Container| null,
|
87
90
|
callback?: () => void
|
88
91
|
): Component<any, ComponentState>;
|
89
92
|
|
90
93
|
<P>(
|
91
94
|
element: ReactElement<P>,
|
92
|
-
container:
|
95
|
+
container: Container| null,
|
93
96
|
callback?: () => void
|
94
97
|
): Component<P, ComponentState> | Element | void;
|
95
98
|
|
96
99
|
(
|
97
100
|
element: ReactElement[],
|
98
|
-
container:
|
101
|
+
container: Container| null,
|
99
102
|
callback?: () => void
|
100
103
|
): Component<any, ComponentState> | Element | void;
|
101
104
|
}
|
react-dom/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.5",
|
4
4
|
"description": "TypeScript definitions for React (react-dom)",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -30,6 +30,11 @@
|
|
30
30
|
"name": "Jessica Franco",
|
31
31
|
"url": "https://github.com/Jessidhia",
|
32
32
|
"githubUsername": "Jessidhia"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"name": "Sebastian Silbermann",
|
36
|
+
"url": "https://github.com/eps1lon",
|
37
|
+
"githubUsername": "eps1lon"
|
33
38
|
}
|
34
39
|
],
|
35
40
|
"main": "",
|
@@ -43,6 +48,6 @@
|
|
43
48
|
"dependencies": {
|
44
49
|
"@types/react": "*"
|
45
50
|
},
|
46
|
-
"typesPublisherContentHash": "
|
51
|
+
"typesPublisherContentHash": "efcabc29f4b12c5b1112d528883bab336df851747e5a829ebb92aa30b1895336",
|
47
52
|
"typeScriptVersion": "3.5"
|
48
53
|
}
|