From 8990a3dcbdbe99423dbb3c103a312f2e76201fd5 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 17 Jun 2026 07:10:35 +0200 Subject: [PATCH] chore: fix vue-tsc error in ci-tools conditional header spread `body` is `unknown`, so `...(body && {...})` spreads a string-including union and fails vue-tsc (TS2698). `Boolean(body)` keeps the spread object-only while preserving the runtime behavior. Assisted-by: claude-code:opus-4.8 --- tools/ci-tools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci-tools.ts b/tools/ci-tools.ts index 1491adaddc..b872c35187 100644 --- a/tools/ci-tools.ts +++ b/tools/ci-tools.ts @@ -83,7 +83,7 @@ async function setPrLabels(): Promise { Accept: 'application/vnd.github+json', Authorization: `Bearer ${env.GITHUB_TOKEN}`, 'X-GitHub-Api-Version': '2022-11-28', - ...(body && {'Content-Type': 'application/json'}), + ...(Boolean(body) && {'Content-Type': 'application/json'}), }, body: body ? JSON.stringify(body) : undefined, });