@types/react-dom 16.8.2 → 16.9.0
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 +3 -3
- react-dom/index.d.ts +1 -8
- react-dom/package.json +4 -3
- react-dom/test-utils/index.d.ts +5 -4
react-dom/README.md
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
> `npm install --save @types/react-dom`
|
3
3
|
|
4
4
|
# Summary
|
5
|
-
This package contains type definitions for React (react-dom) (
|
5
|
+
This package contains type definitions for React (react-dom) (http://facebook.github.io/react/).
|
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:
|
11
|
+
* Last updated: Mon, 19 Aug 2019 20:08:04 GMT
|
12
12
|
* Dependencies: @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>, Jessica Franco <https://github.com/Jessidhia>.
|
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>, and Jessica Franco <https://github.com/Jessidhia>.
|
react-dom/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Type definitions for React (react-dom) 16.
|
1
|
+
// Type definitions for React (react-dom) 16.9
|
2
2
|
// Project: http://facebook.github.io/react/
|
3
3
|
// Definitions by: Asana <https://asana.com>
|
4
4
|
// AssureSign <http://www.assuresign.com>
|
@@ -91,11 +91,4 @@ export interface Renderer {
|
|
91
91
|
container: Element | null,
|
92
92
|
callback?: () => void
|
93
93
|
): Component<any, ComponentState> | Element | void;
|
94
|
-
|
95
|
-
(
|
96
|
-
parentComponent: Component<any> | Array<Component<any>>,
|
97
|
-
element: SFCElement<any>,
|
98
|
-
container: Element,
|
99
|
-
callback?: () => void
|
100
|
-
): void;
|
101
94
|
}
|
react-dom/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "16.
|
3
|
+
"version": "16.9.0",
|
4
4
|
"description": "TypeScript definitions for React (react-dom)",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -36,12 +36,13 @@
|
|
36
36
|
"types": "index",
|
37
37
|
"repository": {
|
38
38
|
"type": "git",
|
39
|
-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
|
39
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
40
|
+
"directory": "types/react-dom"
|
40
41
|
},
|
41
42
|
"scripts": {},
|
42
43
|
"dependencies": {
|
43
44
|
"@types/react": "*"
|
44
45
|
},
|
45
|
-
"typesPublisherContentHash": "
|
46
|
+
"typesPublisherContentHash": "8dc4144e29251b4891bfa48d4945ccd931a8621fda922cb295595ea47a972501",
|
46
47
|
"typeScriptVersion": "2.8"
|
47
48
|
}
|
react-dom/test-utils/index.d.ts
CHANGED
@@ -29,7 +29,7 @@ export interface SyntheticEventData extends OptionalEventProperties {
|
|
29
29
|
clientX?: number;
|
30
30
|
clientY?: number;
|
31
31
|
changedTouches?: TouchList;
|
32
|
-
charCode?:
|
32
|
+
charCode?: number;
|
33
33
|
clipboardData?: DataTransfer;
|
34
34
|
ctrlKey?: boolean;
|
35
35
|
deltaMode?: number;
|
@@ -291,9 +291,10 @@ export function createRenderer(): ShallowRenderer;
|
|
291
291
|
* @see https://reactjs.org/blog/2019/02/06/react-v16.8.0.html#testing-hooks
|
292
292
|
*/
|
293
293
|
// the "void | undefined" is here to forbid any sneaky "Promise" returns.
|
294
|
-
|
295
|
-
//
|
296
|
-
|
294
|
+
export function act(callback: () => void | undefined): DebugPromiseLike;
|
295
|
+
// the "void | undefined" is here to forbid any sneaky return values
|
296
|
+
// tslint:disable-next-line: void-return
|
297
|
+
export function act(callback: () => Promise<void | undefined>): Promise<undefined>;
|
297
298
|
|
298
299
|
// Intentionally doesn't extend PromiseLike<never>.
|
299
300
|
// Ideally this should be as hard to accidentally use as possible.
|