1- import type { JSX } from 'react'
1+ export { }
22
33declare module 'react-dom/server' {
4- /**
5- * Options for `resume`.
6- *
7- * https://github.com/facebook/react/blob/aec521a96d3f1bebc2ba38553d14f4989c6e88e0/packages/react-dom/src/server/ReactDOMFizzServerEdge.js#L54-L60
8- */
9- export type ResumeOptions = {
10- nonce ?: string
11- signal ?: AbortSignal
12- onError ?: ( error : unknown ) => string | undefined | void
13- onPostpone ?: ( reason : string ) => void
14- unstable_externalRuntimeSrc ?: string | BootstrapScriptDescriptor
15- }
16-
17- export function resume (
18- children : JSX . Element ,
19- postponedState : object ,
20- options ?: ResumeOptions
21- ) : Promise < ReadableStream < Uint8Array > >
22-
234 /**
245 * Options for `renderToReadableStream`.
256 *
267 * https://github.com/facebook/react/blob/aec521a96d3f1bebc2ba38553d14f4989c6e88e0/packages/react-dom/src/server/ReactDOMFizzServerEdge.js#L36-L52
278 */
289 export interface RenderToReadableStreamOptions {
2910 onPostpone ?: ( reason : string ) => void
30- unstable_externalRuntimeSrc ?: string | BootstrapScriptDescriptor
31- importMap ?: {
32- imports ?: {
33- [ specifier : string ] : string
34- }
35- scopes ?: {
36- [ scope : string ] : {
37- [ specifier : string ] : string
38- }
39- }
40- }
41- formState ?: unknown
42- onHeaders ?: ( headers : Headers ) => void
43- maxHeadersLength ?: number
11+ unstable_externalRuntimeSrc ?:
12+ | string
13+ | import ( 'react-dom/server' ) . BootstrapScriptDescriptor
4414 }
4515}
4616
@@ -52,22 +22,8 @@ declare module 'react-dom/static' {
5222 */
5323 export interface PrerenderOptions {
5424 onPostpone ?: ( reason : string ) => void
55- unstable_externalRuntimeSrc ?: string | BootstrapScriptDescriptor
56- importMap ?: {
57- imports ?: {
58- [ specifier : string ] : string
59- }
60- scopes ?: {
61- [ scope : string ] : {
62- [ specifier : string ] : string
63- }
64- }
65- }
66- onHeaders ?: ( headers : Headers ) => void
67- maxHeadersLength ?: number
68- }
69-
70- interface PrerenderResult {
71- postponed : object | null
25+ unstable_externalRuntimeSrc ?:
26+ | string
27+ | import ( 'react-dom/server' ) . BootstrapScriptDescriptor
7228 }
7329}
0 commit comments