@types/react-dom 16.9.12 → 16.9.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 v16.9/LICENSE
CHANGED
File without changes
|
react-dom v16.9/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/v16.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Mon, 25 Apr 2022 17:31:40 GMT
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
|
-
* Global values: `ReactDOM`, `
|
13
|
+
* Global values: `ReactDOM`, `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 v16.9/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 v16.9/package.json
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "16.9.
|
3
|
+
"version": "16.9.15",
|
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
|
{
|
@@ -30,6 +31,11 @@
|
|
30
31
|
"name": "Jessica Franco",
|
31
32
|
"url": "https://github.com/Jessidhia",
|
32
33
|
"githubUsername": "Jessidhia"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"name": "Sebastian Silbermann",
|
37
|
+
"url": "https://github.com/eps1lon",
|
38
|
+
"githubUsername": "eps1lon"
|
33
39
|
}
|
34
40
|
],
|
35
41
|
"main": "",
|
@@ -43,6 +49,6 @@
|
|
43
49
|
"dependencies": {
|
44
50
|
"@types/react": "^16"
|
45
51
|
},
|
46
|
-
"typesPublisherContentHash": "
|
47
|
-
"typeScriptVersion": "3.
|
52
|
+
"typesPublisherContentHash": "4c97af1ae62d84887a9291a66ce0c4197c1a58148e28186800dc1fbe66a5f5c5",
|
53
|
+
"typeScriptVersion": "3.9"
|
48
54
|
}
|
File without changes
|
@@ -9,52 +9,52 @@ import * as ReactTestUtils from ".";
|
|
9
9
|
|
10
10
|
export {};
|
11
11
|
export interface OptionalEventProperties {
|
12
|
-
bubbles?: boolean;
|
13
|
-
cancelable?: boolean;
|
14
|
-
currentTarget?: EventTarget;
|
15
|
-
defaultPrevented?: boolean;
|
16
|
-
eventPhase?: number;
|
17
|
-
isTrusted?: boolean;
|
18
|
-
nativeEvent?: Event;
|
12
|
+
bubbles?: boolean | undefined;
|
13
|
+
cancelable?: boolean | undefined;
|
14
|
+
currentTarget?: EventTarget | undefined;
|
15
|
+
defaultPrevented?: boolean | undefined;
|
16
|
+
eventPhase?: number | undefined;
|
17
|
+
isTrusted?: boolean | undefined;
|
18
|
+
nativeEvent?: Event | undefined;
|
19
19
|
preventDefault?(): void;
|
20
20
|
stopPropagation?(): void;
|
21
|
-
target?: EventTarget;
|
22
|
-
timeStamp?: Date;
|
23
|
-
type?: string;
|
21
|
+
target?: EventTarget | undefined;
|
22
|
+
timeStamp?: Date | undefined;
|
23
|
+
type?: string | undefined;
|
24
24
|
}
|
25
25
|
|
26
26
|
export interface SyntheticEventData extends OptionalEventProperties {
|
27
|
-
altKey?: boolean;
|
28
|
-
button?: number;
|
29
|
-
buttons?: number;
|
30
|
-
clientX?: number;
|
31
|
-
clientY?: number;
|
32
|
-
changedTouches?: TouchList;
|
33
|
-
charCode?: number;
|
34
|
-
clipboardData?: DataTransfer;
|
35
|
-
ctrlKey?: boolean;
|
36
|
-
deltaMode?: number;
|
37
|
-
deltaX?: number;
|
38
|
-
deltaY?: number;
|
39
|
-
deltaZ?: number;
|
40
|
-
detail?: number;
|
27
|
+
altKey?: boolean | undefined;
|
28
|
+
button?: number | undefined;
|
29
|
+
buttons?: number | undefined;
|
30
|
+
clientX?: number | undefined;
|
31
|
+
clientY?: number | undefined;
|
32
|
+
changedTouches?: TouchList | undefined;
|
33
|
+
charCode?: number | undefined;
|
34
|
+
clipboardData?: DataTransfer | undefined;
|
35
|
+
ctrlKey?: boolean | undefined;
|
36
|
+
deltaMode?: number | undefined;
|
37
|
+
deltaX?: number | undefined;
|
38
|
+
deltaY?: number | undefined;
|
39
|
+
deltaZ?: number | undefined;
|
40
|
+
detail?: number | undefined;
|
41
41
|
getModifierState?(key: string): boolean;
|
42
|
-
key?: string;
|
43
|
-
keyCode?: number;
|
44
|
-
locale?: string;
|
45
|
-
location?: number;
|
46
|
-
metaKey?: boolean;
|
47
|
-
pageX?: number;
|
48
|
-
pageY?: number;
|
49
|
-
relatedTarget?: EventTarget;
|
50
|
-
repeat?: boolean;
|
51
|
-
screenX?: number;
|
52
|
-
screenY?: number;
|
53
|
-
shiftKey?: boolean;
|
54
|
-
targetTouches?: TouchList;
|
55
|
-
touches?: TouchList;
|
56
|
-
view?: AbstractView;
|
57
|
-
which?: number;
|
42
|
+
key?: string | undefined;
|
43
|
+
keyCode?: number | undefined;
|
44
|
+
locale?: string | undefined;
|
45
|
+
location?: number | undefined;
|
46
|
+
metaKey?: boolean | undefined;
|
47
|
+
pageX?: number | undefined;
|
48
|
+
pageY?: number | undefined;
|
49
|
+
relatedTarget?: EventTarget | undefined;
|
50
|
+
repeat?: boolean | undefined;
|
51
|
+
screenX?: number | undefined;
|
52
|
+
screenY?: number | undefined;
|
53
|
+
shiftKey?: boolean | undefined;
|
54
|
+
targetTouches?: TouchList | undefined;
|
55
|
+
touches?: TouchList | undefined;
|
56
|
+
view?: AbstractView | undefined;
|
57
|
+
which?: number | undefined;
|
58
58
|
}
|
59
59
|
|
60
60
|
export type EventSimulator = (element: Element | Component<any>, eventData?: SyntheticEventData) => void;
|
@@ -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;
|