From 311850ea7b3c14c25a7c8944f9cc5ecb162f63f2 Mon Sep 17 00:00:00 2001 From: 3kaiu <3kaiu@users.noreply.github.com> Date: Wed, 29 Jul 2026 14:51:27 +0800 Subject: [PATCH] feat(compiler): add HeadersInit to island ambient types --- packages/compiler/src/frontend/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler/src/frontend/types.ts b/packages/compiler/src/frontend/types.ts index 51a2ec867..f56c02e6d 100644 --- a/packages/compiler/src/frontend/types.ts +++ b/packages/compiler/src/frontend/types.ts @@ -15,7 +15,7 @@ export { typeKey }; * signal), so under --dynamic they map to island handles (jsval) exactly * like npm-declared types. Checked with declaration provenance in mapType; * consumed by the lowerer's badType for the static-build wording. */ -export const ISLAND_AMBIENT_TYPES = ["Response", "RequestInit", "AbortSignal", "Headers"] as const; +export const ISLAND_AMBIENT_TYPES = ["Response", "RequestInit", "AbortSignal", "Headers", "HeadersInit"] as const; /** The frontend's record-shape interner. Records are monomorphic structural * shapes: fields sorted by name form the canonical identity, and two types