26 lines
567 B
TypeScript
26 lines
567 B
TypeScript
declare var isCI: boolean;
|
|
|
|
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;
|
|
}
|
|
|
|
interface WebContents {
|
|
getOwnerBrowserWindow(): BrowserWindow;
|
|
}
|
|
|
|
// Experimental views API
|
|
class TopLevelWindow {
|
|
constructor(args: {show: boolean})
|
|
setContentView(view: View): void
|
|
}
|
|
class View {}
|
|
}
|