typedef: formatting tweaks

This commit is contained in:
CanadaHonk 2023-01-26 23:07:44 +00:00
parent 0d391f96e6
commit b537650f03

14
gluon.d.ts vendored
View File

@ -3,10 +3,10 @@ type PageApi = {
* Evaluate a string or function in the web context. * Evaluate a string or function in the web context.
* @returns Return value of expression given. * @returns Return value of expression given.
*/ */
eval: ( eval(
/** String or function to evaluate. */ /** String or function to evaluate. */
expression: string|Function expression: string|Function
) => Promise<any>, ): Promise<any>,
/** Promise for waiting until the page has loaded. */ /** Promise for waiting until the page has loaded. */
loaded: Promise<void>, loaded: Promise<void>,
@ -15,10 +15,10 @@ type PageApi = {
* Get or set the title of the page. * Get or set the title of the page.
* Use no arguments to get the title, or provide a string to set it. * Use no arguments to get the title, or provide a string to set it.
*/ */
title: ( title(
/** Set the page title to a new title. */ /** Set the page title to a new title. */
newTitle: string newTitle: string
) => Promise<string> ): Promise<string>
}; };
type IPCStoreApi = { type IPCStoreApi = {
@ -122,8 +122,10 @@ type CDPApi = {
/** Parameters of CDP command. */ /** Parameters of CDP command. */
params?: Object, params?: Object,
/** Send session ID with the command (default true). /**
@default true */ * Send session ID with the command (default true).
* @default true
*/
useSessionId?: boolean useSessionId?: boolean
): Promise<any> ): Promise<any>
}; };