UNPKG

tauri-plugin-nosleep-api

Version:

Tauri plugin to block the power save functionality in the OS

7 lines (6 loc) 285 B
export declare enum NoSleepType { PreventUserIdleDisplaySleep = "PreventUserIdleDisplaySleep", PreventUserIdleSystemSleep = "PreventUserIdleSystemSleep" } export declare function block(noSleepType: NoSleepType): Promise<void>; export declare function unblock(): Promise<void>;