From 6c5f67929bd32aa58d9a870c881cd7cb9cfb663b Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Sun, 18 Dec 2022 12:33:00 +0000 Subject: [PATCH] typedef: tweaks --- gluon.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gluon.d.ts b/gluon.d.ts index c59da16..a5dbfd6 100644 --- a/gluon.d.ts +++ b/gluon.d.ts @@ -20,7 +20,7 @@ type IPCApi = { /** Data of event to send. */ data: any - ): Promise, + ): Promise, /** * Subscribe to IPC events of a specific type with a callback. @@ -48,7 +48,7 @@ type CDPApi = { method: string, /** Parameters of CDP command. */ - params: Object? + params?: Object ): Promise }; @@ -65,7 +65,7 @@ type Browser = 'chrome'|'chrome_canary'|'chromium'|'edge'|'firefox'|'firefox_nig /** Additional options for opening */ type OpenOptions = { /** Function to evaluate in the web context once loaded. */ - onLoad?: function, + onLoad?: Function, /** Force Gluon to use a browser instead of automatically finding. */ forceBrowser?: Browser,