From f689799ecc5ccb09876bdc2a8ed97e0c5f3b0bf8 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 9 Aug 2026 05:02:18 +0000 Subject: [PATCH] =?UTF-8?q?chore(rest):=20@objectstack/rest=20=E4=BB=8E=20?= =?UTF-8?q?#4311=20=E7=9A=84=20DEBT=20=E5=8F=B0=E8=B4=A6=E6=AF=95=E4=B8=9A?= =?UTF-8?q?=20=E2=80=94=E2=80=94=20=E6=8E=A5=E8=BF=9B=20turbo=20typecheck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #6895(#6307)修掉重复 `?version=` 把 `string[]` 喂进 `version?: string` 的缺陷后,`@objectstack/rest` 已零错编译,而 DEBT 台账仍记 2。门禁自己把这 个状态标成 graduation candidate 并明说 `--lower` 不会处理它 —— 0 不是更低的 天花板,而是毕业。 - `packages/rest/package.json` 增加 `"typecheck": "tsc --noEmit"`; - 删掉 `scripts/check-type-check-coverage.mjs` 里 DEBT 的 `@objectstack/rest` 条目。 两者必须同一个 PR:只删条目不加脚本会挂 COVERED,只加脚本不删条目会挂 RECONCILED。TEST_DEBT 是另一本账,本 PR 不动。 Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_017uFVNMmTxLpmfQYiuKM1Yx --- packages/rest/package.json | 3 ++- scripts/check-type-check-coverage.mjs | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/rest/package.json b/packages/rest/package.json index c39ad11e9b..4be33a6a2b 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -16,7 +16,8 @@ "scripts": { "build": "tsup --config ../../tsup.config.ts", "dev": "tsc -w", - "test": "vitest run" + "test": "vitest run", + "typecheck": "tsc --noEmit" }, "dependencies": { "@objectstack/core": "workspace:*", diff --git a/scripts/check-type-check-coverage.mjs b/scripts/check-type-check-coverage.mjs index c47d130223..28e9e68097 100644 --- a/scripts/check-type-check-coverage.mjs +++ b/scripts/check-type-check-coverage.mjs @@ -347,10 +347,6 @@ const DEBT = { errors: 11, note: 'all code-tier (TS2554 wrong arity x10, TS2552).', }, - '@objectstack/rest': { - errors: 2, - note: 'code-tier 2 (TS2345).', - }, '@objectstack/service-analytics': { errors: 10, note: 'code-tier 9 (TS2339 x7, TS7053 x2) + 1 noise (TS6133). Re-measured 10 at e8db1a230, up from 7 '