electron/spec-main/ambient.d.ts

34 lines
682 B
TypeScript
Raw Normal View History

declare var isCI: boolean;
2019-08-27 21:55:19 +00:00
declare var standardScheme: string;
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;
}
2019-08-27 21:55:19 +00:00
interface Session {
destroy(): void;
}
// Experimental views API
class TopLevelWindow {
constructor(args: {show: boolean})
setContentView(view: View): void
}
class View {}
}
2019-08-28 20:54:50 +00:00
declare module 'dbus-native';