@types/react-dom 16.0.7 → 16.0.11
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/LICENSE +21 -21
- react-dom/README.md +2 -2
- react-dom/package.json +4 -4
- react-dom/server/index.d.ts +7 -1
- react-dom/test-utils/index.d.ts +9 -5
react-dom/LICENSE
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE
|
react-dom/README.md
CHANGED
@@ -8,8 +8,8 @@ This package contains type definitions for React (react-dom) (http://facebook.gi
|
|
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:
|
12
|
-
* Dependencies: react
|
11
|
+
* Last updated: Tue, 27 Nov 2018 22:06:51 GMT
|
12
|
+
* Dependencies: react
|
13
13
|
* Global values: ReactDOM, ReactDOMNodeStream, ReactDOMServer
|
14
14
|
|
15
15
|
# Credits
|
react-dom/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "16.0.
|
3
|
+
"version": "16.0.11",
|
4
4
|
"description": "TypeScript definitions for React (react-dom)",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -28,15 +28,15 @@
|
|
28
28
|
}
|
29
29
|
],
|
30
30
|
"main": "",
|
31
|
+
"types": "index",
|
31
32
|
"repository": {
|
32
33
|
"type": "git",
|
33
34
|
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
|
34
35
|
},
|
35
36
|
"scripts": {},
|
36
37
|
"dependencies": {
|
37
|
-
"@types/react": "*"
|
38
|
-
"@types/node": "*"
|
38
|
+
"@types/react": "*"
|
39
39
|
},
|
40
|
-
"typesPublisherContentHash": "
|
40
|
+
"typesPublisherContentHash": "de1f8ab5d92919c9885d08a2fb6995965e0ef7945f4de92cab32b6621130dc21",
|
41
41
|
"typeScriptVersion": "2.8"
|
42
42
|
}
|
react-dom/server/index.d.ts
CHANGED
react-dom/test-utils/index.d.ts
CHANGED
@@ -59,7 +59,7 @@ export interface SyntheticEventData extends OptionalEventProperties {
|
|
59
59
|
export type EventSimulator = (element: Element | Component<any>, eventData?: SyntheticEventData) => void;
|
60
60
|
|
61
61
|
export interface MockedComponentClass {
|
62
|
-
new (props:
|
62
|
+
new (props: any): any;
|
63
63
|
}
|
64
64
|
|
65
65
|
export interface ShallowRenderer {
|
@@ -160,8 +160,12 @@ export function renderIntoDocument<T extends Element>(
|
|
160
160
|
element: DOMElement<any, T>): T;
|
161
161
|
export function renderIntoDocument(
|
162
162
|
element: SFCElement<any>): void;
|
163
|
-
|
164
|
-
|
163
|
+
// If we replace `P` with `any` in this overload, then some tests fail because
|
164
|
+
// calls to `renderIntoDocument` choose the last overload on the
|
165
|
+
// subtype-relation pass and get an undesirably broad return type. Using `P`
|
166
|
+
// allows this overload to match on the subtype-relation pass.
|
167
|
+
export function renderIntoDocument<P, T extends Component<P>>(
|
168
|
+
element: CElement<P, T>): T;
|
165
169
|
export function renderIntoDocument<P>(
|
166
170
|
element: ReactElement<P>): Component<P> | Element | void;
|
167
171
|
|
@@ -257,7 +261,7 @@ export function findRenderedDOMComponentWithTag(
|
|
257
261
|
/**
|
258
262
|
* Finds all instances of components with type equal to `componentClass`.
|
259
263
|
*/
|
260
|
-
export function scryRenderedComponentsWithType<T extends Component
|
264
|
+
export function scryRenderedComponentsWithType<T extends Component<any>, C extends ComponentClass<any>>(
|
261
265
|
root: Component<any>,
|
262
266
|
type: ClassType<any, T, C>): T[];
|
263
267
|
|
@@ -266,7 +270,7 @@ export function scryRenderedComponentsWithType<T extends Component, C extends Co
|
|
266
270
|
* and returns that one result, or throws exception if there is any other
|
267
271
|
* number of matches besides one.
|
268
272
|
*/
|
269
|
-
export function findRenderedComponentWithType<T extends Component
|
273
|
+
export function findRenderedComponentWithType<T extends Component<any>, C extends ComponentClass<any>>(
|
270
274
|
root: Component<any>,
|
271
275
|
type: ClassType<any, T, C>): T;
|
272
276
|
|