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:
parent
96c86c5a78
commit
cc47fb58b3
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue