From 08e9e539436ebf3bff04151fe889a8820126b801 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Sat, 28 Jan 2023 19:17:14 +0000 Subject: [PATCH] typedef: fix some bugs --- gluon.d.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gluon.d.ts b/gluon.d.ts index 9d8fad7..b97953b 100644 --- a/gluon.d.ts +++ b/gluon.d.ts @@ -33,7 +33,7 @@ type V8CacheApi = { build( /** Build options. */ options?: V8CacheBuildOptions - ), + ): Promise, /** Load a V8 Cache. */ load( @@ -81,7 +81,7 @@ type PageApi = { * @default false */ ignoreCache?: Boolean - ) + ): Promise, }; type IPCStoreApi = { @@ -327,7 +327,7 @@ type Window = { cdp: CDPApi, /** - * API for Gluon idle management (like hibernation). + * API for Gluon idle management (like hibernation). Chromium only. * @experimental */ idle: IdleApi, @@ -338,6 +338,12 @@ type Window = { /** Control (minimize, maximize, etc) the browser window. */ controls: ControlsApi, + /** + * Interface with V8's Compilation Cache. Chromium only. + * @experimental + */ + v8Cache: V8CacheApi, + /** Close the Gluon window. */ close(): void,