typedef: fix some bugs

This commit is contained in:
CanadaHonk 2023-01-28 19:17:14 +00:00
parent 38127dd4bc
commit 08e9e53943

12
gluon.d.ts vendored
View File

@ -33,7 +33,7 @@ type V8CacheApi = {
build( build(
/** Build options. */ /** Build options. */
options?: V8CacheBuildOptions options?: V8CacheBuildOptions
), ): Promise<void>,
/** Load a V8 Cache. */ /** Load a V8 Cache. */
load( load(
@ -81,7 +81,7 @@ type PageApi = {
* @default false * @default false
*/ */
ignoreCache?: Boolean ignoreCache?: Boolean
) ): Promise<void>,
}; };
type IPCStoreApi = { type IPCStoreApi = {
@ -327,7 +327,7 @@ type Window = {
cdp: CDPApi, cdp: CDPApi,
/** /**
* API for Gluon idle management (like hibernation). * API for Gluon idle management (like hibernation). Chromium only.
* @experimental * @experimental
*/ */
idle: IdleApi, idle: IdleApi,
@ -338,6 +338,12 @@ type Window = {
/** Control (minimize, maximize, etc) the browser window. */ /** Control (minimize, maximize, etc) the browser window. */
controls: ControlsApi, controls: ControlsApi,
/**
* Interface with V8's Compilation Cache. Chromium only.
* @experimental
*/
v8Cache: V8CacheApi,
/** Close the Gluon window. */ /** Close the Gluon window. */
close(): void, close(): void,