@types/react-dom 17.0.23 → 17.0.25
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 v17.0/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for react-dom (https://reactjs.org).
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom/v17.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Wed, 22 Nov 2023 00:24:48 GMT
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
13
|
|
14
14
|
# Credits
|
react-dom v17.0/index.d.ts
CHANGED
@@ -49,6 +49,7 @@ export function unstable_renderSubtreeIntoContainer<P>(
|
|
49
49
|
element: ReactElement<P>,
|
50
50
|
container: Element,
|
51
51
|
callback?: (component?: Component<P, ComponentState> | Element) => any,
|
52
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
52
53
|
): Component<P, ComponentState> | Element | void;
|
53
54
|
|
54
55
|
export type Container = Element | Document | DocumentFragment;
|
@@ -91,11 +92,13 @@ export interface Renderer {
|
|
91
92
|
element: ReactElement<P>,
|
92
93
|
container: Container | null,
|
93
94
|
callback?: () => void,
|
95
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
94
96
|
): Component<P, ComponentState> | Element | void;
|
95
97
|
|
96
98
|
(
|
97
99
|
element: ReactElement[],
|
98
100
|
container: Container | null,
|
99
101
|
callback?: () => void,
|
102
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
100
103
|
): Component<any, ComponentState> | Element | void;
|
101
104
|
}
|
react-dom v17.0/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.25",
|
4
4
|
"description": "TypeScript definitions for react-dom",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
|
6
6
|
"license": "MIT",
|
@@ -49,6 +49,6 @@
|
|
49
49
|
"dependencies": {
|
50
50
|
"@types/react": "^17"
|
51
51
|
},
|
52
|
-
"typesPublisherContentHash": "
|
52
|
+
"typesPublisherContentHash": "fcf408338139fe82eaea598accca0563e50c981da3465f3c46ad97b332b2ba62",
|
53
53
|
"typeScriptVersion": "4.5"
|
54
54
|
}
|
react-dom v17.0/server.d.ts
CHANGED
@@ -357,7 +357,7 @@ export function createRenderer(): ShallowRenderer;
|
|
357
357
|
// `strictNullChecks: false`.
|
358
358
|
// - VoidOrUndefinedOnly is there to forbid any non-void return values for users with `strictNullChecks: true`
|
359
359
|
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
360
|
-
//
|
360
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
361
361
|
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
362
362
|
export function act(callback: () => Promise<void>): Promise<undefined>;
|
363
363
|
export function act(callback: () => VoidOrUndefinedOnly): void;
|