From cc47fb58b38f562ce6c1ac10d5688d4c5743e6b4 Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Wed, 25 Mar 2026 23:08:05 -0600 Subject: [PATCH] fix: use Record for hasNonEmptyFields to accept typed DB rows MilestoneRow and SliceRow interfaces don't have index signatures, so they can't be assigned to Record. Using Record allows the helper to accept any typed row object. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/resources/extensions/gsd/auto-post-unit.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resources/extensions/gsd/auto-post-unit.ts b/src/resources/extensions/gsd/auto-post-unit.ts index 7a1e32c0e..bff928beb 100644 --- a/src/resources/extensions/gsd/auto-post-unit.ts +++ b/src/resources/extensions/gsd/auto-post-unit.ts @@ -84,7 +84,8 @@ export interface RogueFileWrite { * in postUnitPostVerification() eventually ingests rogue files, but explicit * detection provides immediate diagnostics so operators know the prompt failed. */ -function hasNonEmptyFields(row: Record | null, fields: string[]): boolean { +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function hasNonEmptyFields(row: Record | null, fields: string[]): boolean { if (!row) return false; return fields.some(f => String(row[f] || "").trim().length > 0); }