@types/react-dom 18.0.8 → 18.0.9
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/package.json +2 -2
- react-dom/test-utils/index.d.ts +2 -2
react-dom/README.md
CHANGED
@@ -8,7 +8,7 @@ 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.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Mon, 14 Nov 2022 19:02:54 GMT
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
13
|
* Global values: `ReactDOM`, `ReactDOMServer`
|
14
14
|
|
react-dom/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "18.0.
|
3
|
+
"version": "18.0.9",
|
4
4
|
"description": "TypeScript definitions for React (react-dom)",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
|
6
6
|
"license": "MIT",
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"dependencies": {
|
50
50
|
"@types/react": "*"
|
51
51
|
},
|
52
|
-
"typesPublisherContentHash": "
|
52
|
+
"typesPublisherContentHash": "cd6b929df8ab56cee31a0dbc7754005b8e59121ffc6cb470717c0feff49d2ece",
|
53
53
|
"typeScriptVersion": "4.1",
|
54
54
|
"exports": {
|
55
55
|
".": {
|
react-dom/test-utils/index.d.ts
CHANGED
@@ -298,8 +298,8 @@ export function createRenderer(): ShallowRenderer;
|
|
298
298
|
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
299
299
|
// tslint:disable-next-line: void-return
|
300
300
|
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
301
|
-
export function act(callback: () => Promise<
|
302
|
-
export function act(callback: () => VoidOrUndefinedOnly): void
|
301
|
+
export function act<T>(callback: () => T | Promise<T>): Promise<T>;
|
302
|
+
export function act(callback: () => VoidOrUndefinedOnly): Promise<void>;
|
303
303
|
|
304
304
|
// Intentionally doesn't extend PromiseLike<never>.
|
305
305
|
// Ideally this should be as hard to accidentally use as possible.
|