@types/react-dom 16.8.5 → 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 +1 -1
- react-dom/index.d.ts +1 -1
- react-dom/package.json +2 -2
- react-dom/test-utils/index.d.ts +3 -1
react-dom/README.md
CHANGED
@@ -8,7 +8,7 @@ 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:
|
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
|
|
react-dom/index.d.ts
CHANGED
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": [
|
@@ -43,6 +43,6 @@
|
|
43
43
|
"dependencies": {
|
44
44
|
"@types/react": "*"
|
45
45
|
},
|
46
|
-
"typesPublisherContentHash": "
|
46
|
+
"typesPublisherContentHash": "8dc4144e29251b4891bfa48d4945ccd931a8621fda922cb295595ea47a972501",
|
47
47
|
"typeScriptVersion": "2.8"
|
48
48
|
}
|
react-dom/test-utils/index.d.ts
CHANGED
@@ -291,8 +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
|
-
// the actual return value is always a "DebugPromiseLike".
|
295
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>;
|
296
298
|
|
297
299
|
// Intentionally doesn't extend PromiseLike<never>.
|
298
300
|
// Ideally this should be as hard to accidentally use as possible.
|