typedef: change some voids to Promise<void>s
This commit is contained in:
parent
bc4b03d7eb
commit
50d60b27a8
6
gluon.d.ts
vendored
6
gluon.d.ts
vendored
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user