Skip to content

Commit 4567e1d

Browse files
os-zhuangclaude
andcommitted
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 <noreply@anthropic.com>
1 parent 9cde14a commit 4567e1d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/cli/src/utils/lint-flow-patterns.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ describe('lintFlowPatterns — wrong interpolation syntax (#1315)', () => {
187187

188188

189189
describe('lintFlowPatterns — approval revise loop (ADR-0044)', () => {
190-
const approvalFlow = (edges, approvalConfig = {}) => ({
190+
const approvalFlow = (
191+
edges: Array<{ source: string; target: string; label?: string; type?: string }>,
192+
approvalConfig: Record<string, unknown> = {},
193+
) => ({
191194
flows: [{
192195
name: 'budget_approval',
193196
nodes: [

0 commit comments

Comments
 (0)