From 2f71cd4c08bb4514efe43533e6a5d03535204c29 Mon Sep 17 00:00:00 2001 From: Aylur Date: Tue, 15 Oct 2024 01:26:32 +0200 Subject: refactor lua and gjs lib --- core/gjs/src/time.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 core/gjs/src/time.ts (limited to 'core/gjs/src/time.ts') diff --git a/core/gjs/src/time.ts b/core/gjs/src/time.ts deleted file mode 100644 index 4e28ad0..0000000 --- a/core/gjs/src/time.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Astal } from "./imports.js" - -export function interval(interval: number, callback?: () => void) { - return Astal.Time.interval(interval, () => void callback?.()) -} - -export function timeout(timeout: number, callback?: () => void) { - return Astal.Time.timeout(timeout, () => void callback?.()) -} - -export function idle(callback?: () => void) { - return Astal.Time.idle(() => void callback?.()) -} -- cgit v1.2.3