typedef: change some voids to Promise<void>s

This commit is contained in:
CanadaHonk 2023-01-03 18:20:56 +00:00
parent bc4b03d7eb
commit 50d60b27a8

6
gluon.d.ts vendored
View File

@ -65,15 +65,15 @@ type IdleAutoOptions = {
type IdleApi = { type IdleApi = {
/** Put the window into hibernation. */ /** Put the window into hibernation. */
hibernate(): void, hibernate(): Promise<void>,
/** /**
* Put the window to sleep. * Put the window to sleep.
*/ */
sleep(): void, sleep(): Promise<void>,
/** Wake up the window from hibernation or sleep. */ /** Wake up the window from hibernation or sleep. */
wake(): void, wake(): Promise<void>,
/** Enable/disable automatic idle management, and set its options. */ /** Enable/disable automatic idle management, and set its options. */
auto( auto(