We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bootstrapScripts
bootstrapModules
1 parent 72de7cf commit 06030feCopy full SHA for 06030fe
types/react-dom/static.d.ts
@@ -27,10 +27,16 @@ declare global {
27
import { ReactNode } from "react";
28
import { ErrorInfo } from "./client";
29
30
+export type BootstrapScriptDescriptor = {
31
+ src: string;
32
+ integrity?: string | undefined;
33
+ crossOrigin?: string | undefined;
34
+};
35
+
36
export interface PrerenderOptions {
37
bootstrapScriptContent?: string;
- bootstrapScripts?: string[];
- bootstrapModules?: string[];
38
+ bootstrapScripts?: Array<string | BootstrapScriptDescriptor>;
39
+ bootstrapModules?: Array<string | BootstrapScriptDescriptor>;
40
identifierPrefix?: string;
41
namespaceURI?: string;
42
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
0 commit comments