@types/react-dom 17.0.12 → 17.0.13
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/client.d.ts +42 -0
- react-dom/next.d.ts +1 -37
- react-dom/package.json +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: Wed, 02 Mar 2022 17:31:50 GMT
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
13
|
* Global values: `ReactDOM`, `ReactDOMNodeStream`, `ReactDOMServer`
|
14
14
|
|
react-dom/client.d.ts
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* WARNING: This entrypoint is only available starting with `react-dom@18.0.0-rc.1`
|
3
|
+
*/
|
4
|
+
|
5
|
+
// See https://github.com/facebook/react/blob/main/packages/react-dom/client.js to see how the exports are declared,
|
6
|
+
|
7
|
+
import React = require('react');
|
8
|
+
export interface HydrationOptions {
|
9
|
+
onHydrated?(suspenseInstance: Comment): void;
|
10
|
+
onDeleted?(suspenseInstance: Comment): void;
|
11
|
+
/**
|
12
|
+
* Prefix for `useId`.
|
13
|
+
*/
|
14
|
+
identifierPrefix?: string;
|
15
|
+
onRecoverableError?: (error: unknown) => void;
|
16
|
+
}
|
17
|
+
|
18
|
+
export interface RootOptions {
|
19
|
+
/**
|
20
|
+
* Prefix for `useId`.
|
21
|
+
*/
|
22
|
+
identifierPrefix?: string;
|
23
|
+
onRecoverableError?: (error: unknown) => void;
|
24
|
+
}
|
25
|
+
|
26
|
+
export interface Root {
|
27
|
+
render(children: React.ReactChild | Iterable<React.ReactNode>): void;
|
28
|
+
unmount(): void;
|
29
|
+
}
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Replaces `ReactDOM.render` when the `.render` method is called and enables Concurrent Mode.
|
33
|
+
*
|
34
|
+
* @see https://reactjs.org/docs/concurrent-mode-reference.html#createroot
|
35
|
+
*/
|
36
|
+
export function createRoot(container: Element | Document | DocumentFragment | Comment, options?: RootOptions): Root;
|
37
|
+
|
38
|
+
export function hydrateRoot(
|
39
|
+
container: Element | Document | DocumentFragment | Comment,
|
40
|
+
initialChildren: React.ReactChild | Iterable<React.ReactNode>,
|
41
|
+
options?: HydrationOptions,
|
42
|
+
): Root;
|
react-dom/next.d.ts
CHANGED
@@ -30,40 +30,4 @@ import ReactDOM = require('.');
|
|
30
30
|
|
31
31
|
export {};
|
32
32
|
|
33
|
-
declare module '.' {
|
34
|
-
interface HydrationOptions {
|
35
|
-
onHydrated?(suspenseInstance: Comment): void;
|
36
|
-
onDeleted?(suspenseInstance: Comment): void;
|
37
|
-
/**
|
38
|
-
* Prefix for `useId`.
|
39
|
-
*/
|
40
|
-
identifierPrefix?: string;
|
41
|
-
onRecoverableError?: (error: unknown) => void;
|
42
|
-
}
|
43
|
-
|
44
|
-
interface RootOptions {
|
45
|
-
/**
|
46
|
-
* Prefix for `useId`.
|
47
|
-
*/
|
48
|
-
identifierPrefix?: string;
|
49
|
-
onRecoverableError?: (error: unknown) => void;
|
50
|
-
}
|
51
|
-
|
52
|
-
interface Root {
|
53
|
-
render(children: React.ReactChild | Iterable<React.ReactNode>): void;
|
54
|
-
unmount(): void;
|
55
|
-
}
|
56
|
-
|
57
|
-
/**
|
58
|
-
* Replaces `ReactDOM.render` when the `.render` method is called and enables Concurrent Mode.
|
59
|
-
*
|
60
|
-
* @see https://reactjs.org/docs/concurrent-mode-reference.html#createroot
|
61
|
-
*/
|
62
|
-
function createRoot(container: Element | Document | DocumentFragment | Comment, options?: RootOptions): Root;
|
63
|
-
|
64
|
-
function hydrateRoot(
|
65
|
-
container: Element | Document | DocumentFragment | Comment,
|
66
|
-
initialChildren: React.ReactChild | Iterable<React.ReactNode>,
|
67
|
-
options?: HydrationOptions,
|
68
|
-
): Root;
|
69
|
-
}
|
33
|
+
declare module '.' {}
|
react-dom/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.13",
|
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,6 +49,6 @@
|
|
49
49
|
"dependencies": {
|
50
50
|
"@types/react": "*"
|
51
51
|
},
|
52
|
-
"typesPublisherContentHash": "
|
52
|
+
"typesPublisherContentHash": "9f236d9f702478c35871d7dcccc813fde4bde453f13b533e8aea63c02839c874",
|
53
53
|
"typeScriptVersion": "3.9"
|
54
54
|
}
|