From 34799b8409e18aeb78ad2936173bacf4ee57c08a Mon Sep 17 00:00:00 2001 From: garrytan Date: Sat, 3 Oct 2026 21:17:06 +0000 Subject: [PATCH] F4: type the variant-round fetch stub like the existing stubs The test-typecheck ratchet flagged the zero-argument stub cast to typeof fetch; it now takes the fetch arguments like variants-retry-after's stub. Test behavior unchanged. --- design/test/variant-rounds.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/design/test/variant-rounds.test.ts b/design/test/variant-rounds.test.ts index 8e65b6e17..997848b25 100644 --- a/design/test/variant-rounds.test.ts +++ b/design/test/variant-rounds.test.ts @@ -18,7 +18,7 @@ let stdout: string[] = []; /** Each paid call returns distinct bytes, so a later round overwriting an earlier file is visible. */ function stubFetch(): typeof globalThis.fetch { - return (async () => { + return (async (_input: unknown, _init?: unknown) => { calls++; const bytes = Buffer.from(`image-${calls}`).toString("base64"); return new Response(JSON.stringify({ output: [{ type: "image_generation_call", result: bytes }] }), {