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.
This commit is contained in:
1 parent
71791825ce
commit
bc1f24d60c
1 file changed
+1
@@ -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<string, any>;
|
||||
export type ReadAll = <T>(sql: string, ...params: SQLInputValue[]) => T[];
|
||||
export type Transaction = <T>(operation: () => T) => T;
|
||||
|
||||
Reference in new issue
Block a user