From 06030fe120892978c6dde85046cf77eeed616cd4 Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Wed, 9 Apr 2025 08:13:55 +0100 Subject: [PATCH 1/2] Fix type of React `bootstrapScripts` and `bootstrapModules` (static) (#72431) --- types/react-dom/static.d.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/types/react-dom/static.d.ts b/types/react-dom/static.d.ts index aae4a4784cf80c..ef52180c8f9c77 100644 --- a/types/react-dom/static.d.ts +++ b/types/react-dom/static.d.ts @@ -27,10 +27,16 @@ declare global { import { ReactNode } from "react"; import { ErrorInfo } from "./client"; +export type BootstrapScriptDescriptor = { + src: string; + integrity?: string | undefined; + crossOrigin?: string | undefined; +}; + export interface PrerenderOptions { bootstrapScriptContent?: string; - bootstrapScripts?: string[]; - bootstrapModules?: string[]; + bootstrapScripts?: Array; + bootstrapModules?: Array; identifierPrefix?: string; namespaceURI?: string; onError?: (error: unknown, errorInfo: ErrorInfo) => string | void; From be25068a315b443f3f9ed9d08eb925407b37b974 Mon Sep 17 00:00:00 2001 From: robobun Date: Wed, 9 Apr 2025 02:00:58 -0700 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#72437=20[bun]?= =?UTF-8?q?=20update=20to=201.2.9=20by=20@robobun?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- types/bun/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/bun/package.json b/types/bun/package.json index aa50e8d5b9fcbc..b856a69dfa8606 100644 --- a/types/bun/package.json +++ b/types/bun/package.json @@ -6,7 +6,7 @@ "https://bun.sh" ], "dependencies": { - "bun-types": "1.2.7" + "bun-types": "1.2.9" }, "devDependencies": { "@types/bun": "workspace:."