@types/react-dom 18.2.4 → 18.2.6
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/{next.d.ts → canary.d.ts} +4 -4
- react-dom/experimental.d.ts +1 -1
- react-dom/package.json +4 -4
- react-dom/server.d.ts +2 -4
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, 19 Jun 2023 12:32:43 GMT
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
13
|
* Global values: `ReactDOM`, `ReactDOMServer`
|
14
14
|
|
@@ -5,26 +5,26 @@
|
|
5
5
|
*
|
6
6
|
* To load the types declared here in an actual project, there are three ways. The easiest one,
|
7
7
|
* if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
|
8
|
-
* is to add `"react-dom/
|
8
|
+
* is to add `"react-dom/canary"` to the `"types"` array.
|
9
9
|
*
|
10
10
|
* Alternatively, a specific import syntax can to be used from a typescript file.
|
11
11
|
* This module does not exist in reality, which is why the {} is important:
|
12
12
|
*
|
13
13
|
* ```ts
|
14
|
-
* import {} from 'react-dom/
|
14
|
+
* import {} from 'react-dom/canary'
|
15
15
|
* ```
|
16
16
|
*
|
17
17
|
* It is also possible to include it through a triple-slash reference:
|
18
18
|
*
|
19
19
|
* ```ts
|
20
|
-
* /// <reference types="react-dom/
|
20
|
+
* /// <reference types="react-dom/canary" />
|
21
21
|
* ```
|
22
22
|
*
|
23
23
|
* Either the import or the reference only needs to appear once, anywhere in the project.
|
24
24
|
*/
|
25
25
|
|
26
26
|
// See https://github.com/facebook/react/blob/main/packages/react-dom/index.js to see how the exports are declared,
|
27
|
-
// but confirm with published source code (e.g. https://unpkg.com/react-dom@
|
27
|
+
// but confirm with published source code (e.g. https://unpkg.com/react-dom@canary) that these exports end up in the published code
|
28
28
|
|
29
29
|
import React = require('react');
|
30
30
|
import ReactDOM = require('.');
|
react-dom/experimental.d.ts
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
// but confirm with published source code (e.g. https://unpkg.com/react-dom@experimental) that these exports end up in the published code
|
29
29
|
|
30
30
|
import React = require('react');
|
31
|
-
import ReactDOM = require('./
|
31
|
+
import ReactDOM = require('./canary');
|
32
32
|
|
33
33
|
export {};
|
34
34
|
|
react-dom/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "18.2.
|
3
|
+
"version": "18.2.6",
|
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": "f17619716ec62b2f4f9d4541bc4e5fe0365b64cd6abc76511a375496bf09747a",
|
53
53
|
"typeScriptVersion": "4.3",
|
54
54
|
"exports": {
|
55
55
|
".": {
|
@@ -62,9 +62,9 @@
|
|
62
62
|
"default": "./client.d.ts"
|
63
63
|
}
|
64
64
|
},
|
65
|
-
"./
|
65
|
+
"./canary": {
|
66
66
|
"types": {
|
67
|
-
"default": "./
|
67
|
+
"default": "./canary.d.ts"
|
68
68
|
}
|
69
69
|
},
|
70
70
|
"./server": {
|
react-dom/server.d.ts
CHANGED
@@ -39,10 +39,8 @@ export interface RenderToPipeableStreamOptions {
|
|
39
39
|
}
|
40
40
|
|
41
41
|
export interface PipeableStream {
|
42
|
-
|
43
|
-
|
44
|
-
// tslint:disable-next-line:void-return
|
45
|
-
pipe<Writable extends NodeJS.WritableStream>(this: void, destination: Writable): Writable;
|
42
|
+
abort: () => void;
|
43
|
+
pipe: <Writable extends NodeJS.WritableStream>(destination: Writable) => Writable;
|
46
44
|
}
|
47
45
|
|
48
46
|
/**
|