@types/react-dom 19.0.6 → 19.1.1
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 +2 -2
- react-dom/package.json +2 -2
- react-dom/server.d.ts +10 -4
react-dom/README.md
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
> `npm install --save @types/react-dom`
|
3
3
|
|
4
4
|
# Summary
|
5
|
-
This package contains type definitions for react-dom (https://
|
5
|
+
This package contains type definitions for react-dom (https://react.dev/).
|
6
6
|
|
7
7
|
# Details
|
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: Wed, 02 Apr 2025
|
11
|
+
* Last updated: Wed, 02 Apr 2025 09:02:14 GMT
|
12
12
|
* Dependencies: none
|
13
13
|
* Peer dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
14
14
|
|
react-dom/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.1.1",
|
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",
|
@@ -88,6 +88,6 @@
|
|
88
88
|
"peerDependencies": {
|
89
89
|
"@types/react": "^19.0.0"
|
90
90
|
},
|
91
|
-
"typesPublisherContentHash": "
|
91
|
+
"typesPublisherContentHash": "2322ab5fd5b3697fab0194e445099d83d82662db19c270a5d061cfef39611932",
|
92
92
|
"typeScriptVersion": "5.1"
|
93
93
|
}
|
react-dom/server.d.ts
CHANGED
@@ -24,13 +24,19 @@ declare global {
|
|
24
24
|
import { ReactNode } from "react";
|
25
25
|
import { ErrorInfo } from "./client";
|
26
26
|
|
27
|
+
export type BootstrapScriptDescriptor = {
|
28
|
+
src: string;
|
29
|
+
integrity?: string | undefined;
|
30
|
+
crossOrigin?: string | undefined;
|
31
|
+
};
|
32
|
+
|
27
33
|
export interface RenderToPipeableStreamOptions {
|
28
34
|
identifierPrefix?: string;
|
29
35
|
namespaceURI?: string;
|
30
36
|
nonce?: string;
|
31
37
|
bootstrapScriptContent?: string;
|
32
|
-
bootstrapScripts?: string
|
33
|
-
bootstrapModules?: string
|
38
|
+
bootstrapScripts?: Array<string | BootstrapScriptDescriptor>;
|
39
|
+
bootstrapModules?: Array<string | BootstrapScriptDescriptor>;
|
34
40
|
progressiveChunkSize?: number;
|
35
41
|
onShellReady?: () => void;
|
36
42
|
onShellError?: (error: unknown) => void;
|
@@ -82,8 +88,8 @@ export interface RenderToReadableStreamOptions {
|
|
82
88
|
namespaceURI?: string;
|
83
89
|
nonce?: string;
|
84
90
|
bootstrapScriptContent?: string;
|
85
|
-
bootstrapScripts?: string
|
86
|
-
bootstrapModules?: string
|
91
|
+
bootstrapScripts?: Array<string | BootstrapScriptDescriptor>;
|
92
|
+
bootstrapModules?: Array<string | BootstrapScriptDescriptor>;
|
87
93
|
progressiveChunkSize?: number;
|
88
94
|
signal?: AbortSignal;
|
89
95
|
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
|