355b307618
* test: move MenuItem spec to main process * spec: fix errant default accel test * Update menu-item-roles.js * Update api-menu-item-spec.ts
15 lines
342 B
TypeScript
15 lines
342 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;
|
|
}
|
|
}
|