feat: added ts

This commit is contained in:
Arduinum authored and Arduinum628 committed 2026-02-19 16:26:16 +03:00
1 parent ec3d712a82
commit d26310ddad
21 files changed
+135 -149

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { getDb } from "@/db/initDb";
import { SELECT_TIMERS } from "@/db/dml/timerDML";
import { TimersRow } from "@/types/timerType"
/** Получает список таймеров */
export async function getTimers(): Promise<TimersRow[]> {
const db = await getDb();
return await db.select<TimersRow[]>(SELECT_TIMERS);
}