From 85d2fffc83d1dd2e703acc8068aa8c27f7e63214 Mon Sep 17 00:00:00 2001 From: Jordan Verasamy Date: Wed, 7 Jan 2026 16:04:58 -0800 Subject: [PATCH] Fix Promise.withResolvers TypeScript signature conflict MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove optional modifier from withResolvers global declaration to match native Node 24 signature. The optional modifier causes TypeScript to error with "Overload signatures must all be optional or required" when compiling against Node 24's built-in types. This was introduced in PR #6740 which added the global declaration but incorrectly marked it as optional, conflicting with the required signature in Node 24's lib.d.ts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- packages/theme/src/cli/polyfills/promiseWithResolvers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/theme/src/cli/polyfills/promiseWithResolvers.ts b/packages/theme/src/cli/polyfills/promiseWithResolvers.ts index 65c607197a..f958bf4634 100644 --- a/packages/theme/src/cli/polyfills/promiseWithResolvers.ts +++ b/packages/theme/src/cli/polyfills/promiseWithResolvers.ts @@ -6,7 +6,7 @@ interface PromiseWithResolvers { declare global { interface PromiseConstructor { - withResolvers?(): PromiseWithResolvers + withResolvers(): PromiseWithResolvers } }