Add transaction type

This commit is contained in:
Owen
2025-09-04 14:00:57 -07:00
parent e941cf956f
commit 3a8f04cf14
2 changed files with 2 additions and 0 deletions

View File

@@ -50,3 +50,4 @@ function createDb() {
export const db = createDb();
export default db;
export type Transaction = Parameters<Parameters<typeof db["transaction"]>[0]>[0];

View File

@@ -18,6 +18,7 @@ function createDb() {
export const db = createDb();
export default db;
export type Transaction = Parameters<Parameters<typeof db["transaction"]>[0]>[0];
function checkFileExists(filePath: string): boolean {
try {