electron/spec-main/ambient.d.ts
Jeremy Rose 80e5007c47
chore: tsify browser-window (#24326)
* chore: tsify browser-window

* fix focus

* also tsify top-level-window
2020-06-29 10:22:55 +09:00

24 lines
488 B
TypeScript

declare let standardScheme: string;
declare namespace Electron {
interface Menu {
_executeCommand(event: any, id: number): void;
_menuWillShow(): void;
getAcceleratorTextAt(index: number): string;
}
interface MenuItem {
getDefaultRoleAccelerator(): Accelerator | undefined;
}
interface WebContents {
getOwnerBrowserWindow(): BrowserWindow;
getWebPreferences(): any;
}
interface Session {
destroy(): void;
}
}
declare module 'dbus-native';