From bc1f24d60c8be18a3870997f1f8a216a3f01cd15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Fri, 17 Apr 2026 01:44:45 -0400 Subject: [PATCH] chore(lint): annotate SqliteRow as dynamic row shape The any type is load-bearing here: callers destructure arbitrary SQL columns. Add an inline eslint-disable with justification instead of propagating a typing change across all DB modules. --- src/main/database/helpers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/database/helpers.ts b/src/main/database/helpers.ts index 9e5d35ea..3a4ddfc4 100644 --- a/src/main/database/helpers.ts +++ b/src/main/database/helpers.ts @@ -1,6 +1,7 @@ import { randomUUID } from "node:crypto"; import type { SQLInputValue } from "node:sqlite"; +// eslint-disable-next-line @typescript-eslint/no-explicit-any -- SqliteRow represents dynamic row shapes from node:sqlite; callers narrow via explicit column reads export type SqliteRow = Record; export type ReadAll = (sql: string, ...params: SQLInputValue[]) => T[]; export type Transaction = (operation: () => T) => T;