UNPKG
tauri-plugin-nosleep-api-fork
Version:
latest (0.1.3)
0.1.3
0.1.2
Tauri plugin to block the power save functionality in the OS
tauri-plugin-nosleep-api-fork
/
webview-dist
/
index.d.ts
7 lines
(6 loc)
•
285 B
TypeScript
View Raw
1
2
3
4
5
6
7
export
declare
enum
NoSleepType
{
PreventUserIdleDisplaySleep
=
"PreventUserIdleDisplaySleep"
,
PreventUserIdleSystemSleep
=
"PreventUserIdleSystemSleep"
}
export
declare
function
block
(
noSleepType
:
NoSleepType
):
Promise
<
void
>;
export
declare
function
unblock
(
):
Promise
<
void
>;