@types/react-dom 16.9.23 → 16.9.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 v16.9/README.md
CHANGED
@@ -8,8 +8,10 @@ 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/v16.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated: Mon,
|
12
|
-
* Dependencies:
|
11
|
+
* Last updated: Mon, 09 Dec 2024 19:32:14 GMT
|
12
|
+
* Dependencies: none
|
13
|
+
|
14
|
+
* Peer dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
15
|
|
14
16
|
# Credits
|
15
17
|
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
@@ -53,6 +53,7 @@ export function unstable_renderSubtreeIntoContainer<P>(
|
|
53
53
|
element: ReactElement<P>,
|
54
54
|
container: Element,
|
55
55
|
callback?: (component?: Component<P, ComponentState> | Element) => any,
|
56
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
56
57
|
): Component<P, ComponentState> | Element | void;
|
57
58
|
|
58
59
|
export type Container = Element | Document | DocumentFragment;
|
@@ -95,11 +96,13 @@ export interface Renderer {
|
|
95
96
|
element: ReactElement<P>,
|
96
97
|
container: Container | null,
|
97
98
|
callback?: () => void,
|
99
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
98
100
|
): Component<P, ComponentState> | Element | void;
|
99
101
|
|
100
102
|
(
|
101
103
|
element: ReactElement[],
|
102
104
|
container: Container | null,
|
103
105
|
callback?: () => void,
|
106
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
104
107
|
): Component<any, ComponentState> | Element | void;
|
105
108
|
}
|
react-dom v16.9/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "16.9.
|
3
|
+
"version": "16.9.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",
|
@@ -46,9 +46,10 @@
|
|
46
46
|
"directory": "types/react-dom"
|
47
47
|
},
|
48
48
|
"scripts": {},
|
49
|
-
"dependencies": {
|
50
|
-
|
49
|
+
"dependencies": {},
|
50
|
+
"peerDependencies": {
|
51
|
+
"@types/react": "^16.0.0"
|
51
52
|
},
|
52
|
-
"typesPublisherContentHash": "
|
53
|
-
"typeScriptVersion": "
|
53
|
+
"typesPublisherContentHash": "3dff3afc20953e885569868c848f2bf8099cc4f5896d84ff3be86a637e6e6f2b",
|
54
|
+
"typeScriptVersion": "5.0"
|
54
55
|
}
|
@@ -356,7 +356,7 @@ export function createRenderer(): ShallowRenderer;
|
|
356
356
|
// `strictNullChecks: false`.
|
357
357
|
// - VoidOrUndefinedOnly is there to forbid any non-void return values for users with `strictNullChecks: true`
|
358
358
|
declare const UNDEFINED_VOID_ONLY: unique symbol;
|
359
|
-
//
|
359
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
360
360
|
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
|
361
361
|
export function act(callback: () => Promise<VoidOrUndefinedOnly>): Promise<undefined>;
|
362
362
|
export function act(callback: () => VoidOrUndefinedOnly): void;
|