@@ -4,32 +4,40 @@ declare global {
44 // tslint:disable-next-line:no-empty-interface
55 interface ReadableStream { }
66
7+ // tslint:disable-next-line:no-empty-interface
78 interface WritableStream { }
89 }
910
11+ /**
12+ * Stub for https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
13+ */
14+ // tslint:disable-next-line:no-empty-interface
15+ interface AbortSignal { }
16+
1017 /**
1118 * Stub for https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
1219 */
20+ // tslint:disable-next-line:no-empty-interface
1321 interface ReadableStream { }
1422}
1523
1624import { ReactElement , ReactNode } from 'react' ;
1725
18- interface RenderToPipeableStreamOptions {
26+ export interface RenderToPipeableStreamOptions {
1927 identifierPrefix ?: string ;
2028 namespaceURI ?: string ;
2129 nonce ?: string ;
2230 bootstrapScriptContent ?: string ;
23- bootstrapScripts ?: Array < string > ;
24- bootstrapModules ?: Array < string > ;
31+ bootstrapScripts ?: string [ ] ;
32+ bootstrapModules ?: string [ ] ;
2533 progressiveChunkSize ?: number ;
2634 onShellReady ?: ( ) => void ;
2735 onShellError ?: ( error : unknown ) => void ;
2836 onAllReady ?: ( ) => void ;
2937 onError ?: ( error : unknown ) => void ;
3038}
3139
32- interface PipeableStream {
40+ export interface PipeableStream {
3341 abort ( ) : void ;
3442 pipe < Writable extends NodeJS . WritableStream > ( destination : Writable ) : Writable ;
3543}
@@ -80,19 +88,19 @@ export function renderToStaticMarkup(element: ReactElement): string;
8088 */
8189export function renderToStaticNodeStream ( element : ReactElement ) : NodeJS . ReadableStream ;
8290
83- interface RenderToReadableStreamOptions {
91+ export interface RenderToReadableStreamOptions {
8492 identifierPrefix ?: string ;
8593 namespaceURI ?: string ;
8694 nonce ?: string ;
8795 bootstrapScriptContent ?: string ;
88- bootstrapScripts ?: Array < string > ;
89- bootstrapModules ?: Array < string > ;
96+ bootstrapScripts ?: string [ ] ;
97+ bootstrapModules ?: string [ ] ;
9098 progressiveChunkSize ?: number ;
9199 signal ?: AbortSignal ;
92100 onError ?: ( error : unknown ) => void ;
93101}
94102
95- interface ReactDOMServerReadableStream extends ReadableStream {
103+ export interface ReactDOMServerReadableStream extends ReadableStream {
96104 allReady : Promise < void > ;
97105}
98106
0 commit comments