typedef: add openAbout
This commit is contained in:
parent
fd38f8a0dd
commit
3ba54a6cf4
35
gluon.d.ts
vendored
35
gluon.d.ts
vendored
@ -591,4 +591,37 @@ type ExtensionsAPI = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/** Manage browser extensions to use. */
|
/** 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>;
|
Loading…
x
Reference in New Issue
Block a user