fix: use Record<string, any> for hasNonEmptyFields to accept typed DB rows

MilestoneRow and SliceRow interfaces don't have index signatures,
so they can't be assigned to Record<string, unknown>. Using
Record<string, any> allows the helper to accept any typed row object.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson 2026-03-25 23:08:05 -06:00
parent 96c86c5a78
commit cc47fb58b3

View file

@ -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<string, unknown> | null, fields: string[]): boolean {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function hasNonEmptyFields(row: Record<string, any> | null, fields: string[]): boolean {
if (!row) return false;
return fields.some(f => String(row[f] || "").trim().length > 0);
}