From b537650f03291532720b6afd4c848b47d5e1ea46 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Thu, 26 Jan 2023 23:07:44 +0000 Subject: [PATCH] typedef: formatting tweaks --- gluon.d.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gluon.d.ts b/gluon.d.ts index 5a609a5..de90626 100644 --- a/gluon.d.ts +++ b/gluon.d.ts @@ -3,10 +3,10 @@ type PageApi = { * Evaluate a string or function in the web context. * @returns Return value of expression given. */ - eval: ( + eval( /** String or function to evaluate. */ expression: string|Function - ) => Promise, + ): Promise, /** Promise for waiting until the page has loaded. */ loaded: Promise, @@ -15,10 +15,10 @@ type PageApi = { * Get or set the title of the page. * Use no arguments to get the title, or provide a string to set it. */ - title: ( + title( /** Set the page title to a new title. */ newTitle: string - ) => Promise + ): Promise }; type IPCStoreApi = { @@ -122,8 +122,10 @@ type CDPApi = { /** Parameters of CDP command. */ params?: Object, - /** Send session ID with the command (default true). - @default true */ + /** + * Send session ID with the command (default true). + * @default true + */ useSessionId?: boolean ): Promise };