feat: added ts

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

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);
}