UNPKG
tauri-plugin-nosleep-api
Version:
latest (0.1.1)
0.1.1
0.1.0
0.1.0-rc.1
Tauri plugin to block the power save functionality in the OS
tauri-plugin-nosleep-api
/
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
>;