From 4567e1dbe14608a244da71ed6816cccd98278c80 Mon Sep 17 00:00:00 2001 From: os-zhuang Date: Wed, 24 Jun 2026 18:41:35 +0800 Subject: [PATCH] fix(cli): type the approvalFlow test helper's edges param (unblock TS on main) `packages/cli/src/utils/lint-flow-patterns.test.ts:190` had an untyped `edges` parameter (TS7006 under the build's noImplicitAny), introduced by #2279. The TypeScript Type Check job builds the whole workspace, so this fails CI for *every* open PR. Add the edge-array type (and an explicit approvalConfig type). Test-only; no behavior change. Co-Authored-By: Claude Opus 4.8 --- packages/cli/src/utils/lint-flow-patterns.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/utils/lint-flow-patterns.test.ts b/packages/cli/src/utils/lint-flow-patterns.test.ts index c1629fe2db..2f0cfbd668 100644 --- a/packages/cli/src/utils/lint-flow-patterns.test.ts +++ b/packages/cli/src/utils/lint-flow-patterns.test.ts @@ -187,7 +187,10 @@ describe('lintFlowPatterns — wrong interpolation syntax (#1315)', () => { describe('lintFlowPatterns — approval revise loop (ADR-0044)', () => { - const approvalFlow = (edges, approvalConfig = {}) => ({ + const approvalFlow = ( + edges: Array<{ source: string; target: string; label?: string; type?: string }>, + approvalConfig: Record = {}, + ) => ({ flows: [{ name: 'budget_approval', nodes: [