mirror of
https://github.com/block/buzz.git
synced 2026-10-31 06:21:34 +00:00
Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
8 lines
298 B
TypeScript
8 lines
298 B
TypeScript
import { invokeTauri } from "@/shared/api/tauri";
|
|
|
|
// Seconds since the last OS-wide user input, or null where the platform has
|
|
// no supported idle API (e.g. Linux Wayland).
|
|
export function getOsIdleSeconds(): Promise<number | null> {
|
|
return invokeTauri<number | null>("get_os_idle_seconds");
|
|
}
|