typedef: add openAbout

This commit is contained in:
CanadaHonk 2023-04-12 01:12:25 +01:00
parent fd38f8a0dd
commit 3ba54a6cf4

35
gluon.d.ts vendored
View File

@ -591,4 +591,37 @@ type ExtensionsAPI = {
};
/** Manage browser extensions to use. */
export const extensions: ExtensionsAPI;
export const extensions: ExtensionsAPI;
type Link = {
href: string,
text: string
};
type OpenAboutOptions = {
/** Name of the app to display. */
name: string,
/** URL icon of the app to use. */
icon: string,
/** Description of the app to display. Supports HTML. */
description?: string,
/** Version of the app to display. */
version?: string,
/** Links to display in the window. */
links?: Link[],
/** Gluon versions from a Window to display (Gluon, Node, Browser). */
gluonVersions?: BrowserVersions
};
/**
* Open a new Gluon about window.
*/
export function openAbout(
/** Options for what to display in the about window. */
options: OpenAboutOptions
): Promise<Window>;