@@ -24,13 +24,18 @@ declare global {
2424import { ReactNode } from "react" ;
2525import { ErrorInfo } from "./client" ;
2626
27+ export type BootstrapScriptDescriptor = {
28+ src : string ,
29+ integrity ?: string | undefined ,
30+ crossOrigin ?: string | undefined ,
31+ } ;
2732export interface RenderToPipeableStreamOptions {
2833 identifierPrefix ?: string ;
2934 namespaceURI ?: string ;
3035 nonce ?: string ;
3136 bootstrapScriptContent ?: string ;
32- bootstrapScripts ?: string [ ] ;
33- bootstrapModules ?: string [ ] ;
37+ bootstrapScripts ?: Array < string | BootstrapScriptDescriptor > ;
38+ bootstrapModules ?: Array < string | BootstrapScriptDescriptor > ;
3439 progressiveChunkSize ?: number ;
3540 onShellReady ?: ( ) => void ;
3641 onShellError ?: ( error : unknown ) => void ;
@@ -100,8 +105,8 @@ export interface RenderToReadableStreamOptions {
100105 namespaceURI ?: string ;
101106 nonce ?: string ;
102107 bootstrapScriptContent ?: string ;
103- bootstrapScripts ?: string [ ] ;
104- bootstrapModules ?: string [ ] ;
108+ bootstrapScripts ?: Array < string | BootstrapScriptDescriptor > ;
109+ bootstrapModules ?: Array < string | BootstrapScriptDescriptor > ;
105110 progressiveChunkSize ?: number ;
106111 signal ?: AbortSignal ;
107112 onError ?: ( error : unknown , errorInfo : ErrorInfo ) => string | void ;
0 commit comments