@types/react-dom 15.5.11 → 15.5.14
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 v15 → react-dom v15.5}/LICENSE +21 -21
- react-dom v15.5/README.md +16 -0
- {react-dom v15 → react-dom v15.5}/index.d.ts +0 -0
- {react-dom v15 → react-dom v15.5}/package.json +5 -4
- {react-dom v15 → react-dom v15.5}/server/index.d.ts +0 -0
- {react-dom v15 → react-dom v15.5}/test-utils/index.d.ts +46 -42
- react-dom v15/README.md +0 -16
- react-dom v15/node-stream/index.d.ts +0 -18
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) Microsoft Corporation.
|
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.
|
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
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Installation
|
2
|
+
> `npm install --save @types/react-dom`
|
3
|
+
|
4
|
+
# Summary
|
5
|
+
This package contains type definitions for React (react-dom) (http://facebook.github.io/react/).
|
6
|
+
|
7
|
+
# Details
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom/v15.
|
9
|
+
|
10
|
+
### Additional Details
|
11
|
+
* Last updated: Mon, 25 Apr 2022 17:31:40 GMT
|
12
|
+
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
|
+
* Global values: `ReactDOM`, `ReactDOMServer`
|
14
|
+
|
15
|
+
# Credits
|
16
|
+
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), and [MartynasZilinskas](https://github.com/MartynasZilinskas).
|
File without changes
|
@@ -1,7 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "15.5.
|
3
|
+
"version": "15.5.14",
|
4
4
|
"description": "TypeScript definitions for React (react-dom)",
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
|
5
6
|
"license": "MIT",
|
6
7
|
"contributors": [
|
7
8
|
{
|
@@ -23,7 +24,7 @@
|
|
23
24
|
}
|
24
25
|
],
|
25
26
|
"main": "",
|
26
|
-
"types": "index",
|
27
|
+
"types": "index.d.ts",
|
27
28
|
"repository": {
|
28
29
|
"type": "git",
|
29
30
|
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
@@ -33,6 +34,6 @@
|
|
33
34
|
"dependencies": {
|
34
35
|
"@types/react": "^15"
|
35
36
|
},
|
36
|
-
"typesPublisherContentHash": "
|
37
|
-
"typeScriptVersion": "
|
37
|
+
"typesPublisherContentHash": "c709574b75369003893174aab4a5a5cf6381d902ddc1f0e938dde0f285aec2d2",
|
38
|
+
"typeScriptVersion": "3.9"
|
38
39
|
}
|
File without changes
|
@@ -8,52 +8,52 @@ import {
|
|
8
8
|
import * as ReactTestUtils from ".";
|
9
9
|
|
10
10
|
export interface OptionalEventProperties {
|
11
|
-
bubbles?: boolean;
|
12
|
-
cancelable?: boolean;
|
13
|
-
currentTarget?: EventTarget;
|
14
|
-
defaultPrevented?: boolean;
|
15
|
-
eventPhase?: number;
|
16
|
-
isTrusted?: boolean;
|
17
|
-
nativeEvent?: Event;
|
11
|
+
bubbles?: boolean | undefined;
|
12
|
+
cancelable?: boolean | undefined;
|
13
|
+
currentTarget?: EventTarget | undefined;
|
14
|
+
defaultPrevented?: boolean | undefined;
|
15
|
+
eventPhase?: number | undefined;
|
16
|
+
isTrusted?: boolean | undefined;
|
17
|
+
nativeEvent?: Event | undefined;
|
18
18
|
preventDefault?(): void;
|
19
19
|
stopPropagation?(): void;
|
20
|
-
target?: EventTarget;
|
21
|
-
timeStamp?: Date;
|
22
|
-
type?: string;
|
20
|
+
target?: EventTarget | undefined;
|
21
|
+
timeStamp?: Date | undefined;
|
22
|
+
type?: string | undefined;
|
23
23
|
}
|
24
24
|
|
25
25
|
export interface SyntheticEventData extends OptionalEventProperties {
|
26
|
-
altKey?: boolean;
|
27
|
-
button?: number;
|
28
|
-
buttons?: number;
|
29
|
-
clientX?: number;
|
30
|
-
clientY?: number;
|
31
|
-
changedTouches?: TouchList;
|
32
|
-
charCode?:
|
33
|
-
clipboardData?: DataTransfer;
|
34
|
-
ctrlKey?: boolean;
|
35
|
-
deltaMode?: number;
|
36
|
-
deltaX?: number;
|
37
|
-
deltaY?: number;
|
38
|
-
deltaZ?: number;
|
39
|
-
detail?: number;
|
26
|
+
altKey?: boolean | undefined;
|
27
|
+
button?: number | undefined;
|
28
|
+
buttons?: number | undefined;
|
29
|
+
clientX?: number | undefined;
|
30
|
+
clientY?: number | undefined;
|
31
|
+
changedTouches?: TouchList | undefined;
|
32
|
+
charCode?: number | undefined;
|
33
|
+
clipboardData?: DataTransfer | undefined;
|
34
|
+
ctrlKey?: boolean | undefined;
|
35
|
+
deltaMode?: number | undefined;
|
36
|
+
deltaX?: number | undefined;
|
37
|
+
deltaY?: number | undefined;
|
38
|
+
deltaZ?: number | undefined;
|
39
|
+
detail?: number | undefined;
|
40
40
|
getModifierState?(key: string): boolean;
|
41
|
-
key?: string;
|
42
|
-
keyCode?: number;
|
43
|
-
locale?: string;
|
44
|
-
location?: number;
|
45
|
-
metaKey?: boolean;
|
46
|
-
pageX?: number;
|
47
|
-
pageY?: number;
|
48
|
-
relatedTarget?: EventTarget;
|
49
|
-
repeat?: boolean;
|
50
|
-
screenX?: number;
|
51
|
-
screenY?: number;
|
52
|
-
shiftKey?: boolean;
|
53
|
-
targetTouches?: TouchList;
|
54
|
-
touches?: TouchList;
|
55
|
-
view?: AbstractView;
|
56
|
-
which?: number;
|
41
|
+
key?: string | undefined;
|
42
|
+
keyCode?: number | undefined;
|
43
|
+
locale?: string | undefined;
|
44
|
+
location?: number | undefined;
|
45
|
+
metaKey?: boolean | undefined;
|
46
|
+
pageX?: number | undefined;
|
47
|
+
pageY?: number | undefined;
|
48
|
+
relatedTarget?: EventTarget | undefined;
|
49
|
+
repeat?: boolean | undefined;
|
50
|
+
screenX?: number | undefined;
|
51
|
+
screenY?: number | undefined;
|
52
|
+
shiftKey?: boolean | undefined;
|
53
|
+
targetTouches?: TouchList | undefined;
|
54
|
+
touches?: TouchList | undefined;
|
55
|
+
view?: AbstractView | undefined;
|
56
|
+
which?: number | undefined;
|
57
57
|
}
|
58
58
|
|
59
59
|
export type EventSimulator = (element: Element | Component<any>, eventData?: SyntheticEventData) => void;
|
@@ -156,8 +156,12 @@ export function renderIntoDocument<T extends Element>(
|
|
156
156
|
element: DOMElement<any, T>): T;
|
157
157
|
export function renderIntoDocument(
|
158
158
|
element: SFCElement<any>): void;
|
159
|
-
|
160
|
-
|
159
|
+
// If we replace `P` with `any` in this overload, then some tests fail because
|
160
|
+
// calls to `renderIntoDocument` choose the last overload on the
|
161
|
+
// subtype-relation pass and get an undesirably broad return type. Using `P`
|
162
|
+
// allows this overload to match on the subtype-relation pass.
|
163
|
+
export function renderIntoDocument<P, T extends Component<P>>(
|
164
|
+
element: CElement<P, T>): T;
|
161
165
|
export function renderIntoDocument<P>(
|
162
166
|
element: ReactElement<P>): Component<P> | Element | void;
|
163
167
|
|
react-dom v15/README.md
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# Installation
|
2
|
-
> `npm install --save @types/react-dom`
|
3
|
-
|
4
|
-
# Summary
|
5
|
-
This package contains type definitions for React (react-dom) (http://facebook.github.io/react/).
|
6
|
-
|
7
|
-
# Details
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom/v15
|
9
|
-
|
10
|
-
Additional Details
|
11
|
-
* Last updated: Mon, 14 Oct 2019 20:17:01 GMT
|
12
|
-
* Dependencies: @types/react
|
13
|
-
* Global values: ReactDOM, ReactDOMNodeStream, ReactDOMServer
|
14
|
-
|
15
|
-
# Credits
|
16
|
-
These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, and MartynasZilinskas <https://github.com/MartynasZilinskas>.
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { ReactElement } from 'react';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Render a ReactElement to its initial HTML. This should only be used on the
|
5
|
-
* server.
|
6
|
-
* See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostream
|
7
|
-
*/
|
8
|
-
export function renderToStream(element: ReactElement): any;
|
9
|
-
|
10
|
-
/**
|
11
|
-
* Similar to renderToStream, except this doesn't create extra DOM attributes
|
12
|
-
* such as data-react-id that React uses internally.
|
13
|
-
* See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostaticstream
|
14
|
-
*/
|
15
|
-
export function renderToStaticStream(element: ReactElement): any;
|
16
|
-
export const version: string;
|
17
|
-
|
18
|
-
export as namespace ReactDOMNodeStream;
|