From ff1c1e5b347eab01bf7075866a5c9553be772423 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 10:57:02 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Fix:=20avoid=20using=20'any'=20t?= =?UTF-8?q?ype=20in=20hostBridge.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replaced `(data as any)` with `(data as unknown as ArrayBufferLike)` when instantiating `Uint8Array`. - Avoids the unsafe `any` type, improving maintainability and readability without altering behavior. --- src/hostBridge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hostBridge.ts b/src/hostBridge.ts index d65b64c..5f76b5c 100644 --- a/src/hostBridge.ts +++ b/src/hostBridge.ts @@ -875,7 +875,7 @@ export class HostBridge implements ToastService { if (data instanceof Uint8Array) { buffer = data; } else { - buffer = new Uint8Array(data.buffer || (data as any), data.byteOffset, data.byteLength); + buffer = new Uint8Array(data.buffer || (data as unknown as ArrayBufferLike), data.byteOffset, data.byteLength); } await vsc.workspace.fs.writeFile(uri, buffer); }