@types/react-dom 18.3.5 → 18.3.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 v18.3/README.md +1 -1
- react-dom v18.3/package.json +3 -3
- react-dom v18.3/server.d.ts +9 -4
react-dom v18.3/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/v18.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated: Wed,
|
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 v18.3/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "18.3.
|
3
|
+
"version": "18.3.6",
|
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",
|
@@ -83,6 +83,6 @@
|
|
83
83
|
"peerDependencies": {
|
84
84
|
"@types/react": "^18.0.0"
|
85
85
|
},
|
86
|
-
"typesPublisherContentHash": "
|
87
|
-
"typeScriptVersion": "5.
|
86
|
+
"typesPublisherContentHash": "834677d5234a9cac8e4577db35f2c57055a80ca789b5f08832919b2e1d8db64b",
|
87
|
+
"typeScriptVersion": "5.1"
|
88
88
|
}
|
react-dom v18.3/server.d.ts
CHANGED
@@ -24,13 +24,18 @@ 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
|
+
};
|
27
32
|
export interface RenderToPipeableStreamOptions {
|
28
33
|
identifierPrefix?: string;
|
29
34
|
namespaceURI?: string;
|
30
35
|
nonce?: string;
|
31
36
|
bootstrapScriptContent?: string;
|
32
|
-
bootstrapScripts?: string
|
33
|
-
bootstrapModules?: string
|
37
|
+
bootstrapScripts?: Array<string | BootstrapScriptDescriptor>;
|
38
|
+
bootstrapModules?: Array<string | BootstrapScriptDescriptor>;
|
34
39
|
progressiveChunkSize?: number;
|
35
40
|
onShellReady?: () => void;
|
36
41
|
onShellError?: (error: unknown) => void;
|
@@ -100,8 +105,8 @@ export interface RenderToReadableStreamOptions {
|
|
100
105
|
namespaceURI?: string;
|
101
106
|
nonce?: string;
|
102
107
|
bootstrapScriptContent?: string;
|
103
|
-
bootstrapScripts?: string
|
104
|
-
bootstrapModules?: string
|
108
|
+
bootstrapScripts?: Array<string | BootstrapScriptDescriptor>;
|
109
|
+
bootstrapModules?: Array<string | BootstrapScriptDescriptor>;
|
105
110
|
progressiveChunkSize?: number;
|
106
111
|
signal?: AbortSignal;
|
107
112
|
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
|