2019-03-10 22:38:44 +00:00
|
|
|
declare var isCI: boolean;
|
2019-08-27 21:55:19 +00:00
|
|
|
declare var standardScheme: string;
|
2019-07-16 19:54:18 +00:00
|
|
|
|
|
|
|
declare namespace Electron {
|
|
|
|
interface Menu {
|
|
|
|
delegate: {
|
|
|
|
executeCommand(menu: Menu, event: any, id: number): void;
|
|
|
|
menuWillShow(menu: Menu): void;
|
|
|
|
};
|
|
|
|
getAcceleratorTextAt(index: number): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface MenuItem {
|
|
|
|
getDefaultRoleAccelerator(): Accelerator | undefined;
|
|
|
|
}
|
2019-07-24 15:44:24 +00:00
|
|
|
|
|
|
|
interface WebContents {
|
|
|
|
getOwnerBrowserWindow(): BrowserWindow;
|
|
|
|
}
|
2019-08-27 07:37:30 +00:00
|
|
|
|
2019-08-27 21:55:19 +00:00
|
|
|
interface Session {
|
|
|
|
destroy(): void;
|
|
|
|
}
|
|
|
|
|
2019-08-27 07:37:30 +00:00
|
|
|
// Experimental views API
|
|
|
|
class TopLevelWindow {
|
|
|
|
constructor(args: {show: boolean})
|
|
|
|
setContentView(view: View): void
|
|
|
|
}
|
|
|
|
class View {}
|
2019-07-16 19:54:18 +00:00
|
|
|
}
|
2019-08-28 20:54:50 +00:00
|
|
|
|
|
|
|
declare module 'dbus-native';
|