chore: convert more files to TypeScript (#18820)

This commit is contained in:
Milan Burda
2019-07-17 19:23:52 +02:00
committed by Jeremy Apthorp
parent 134d76dcdd
commit c79613b037
11 changed files with 84 additions and 73 deletions

View File

@@ -54,11 +54,20 @@ declare module NodeJS {
}
}
interface ContextMenuItem {
id: number;
label: string;
type: 'normal' | 'separator' | 'subMenu' | 'checkbox';
checked: boolean;
enabled: boolean;
subItems: ContextMenuItem[];
}
declare interface Window {
ELECTRON_DISABLE_SECURITY_WARNINGS?: boolean;
ELECTRON_ENABLE_SECURITY_WARNINGS?: boolean;
InspectorFrontendHost?: {
showContextMenuAtPoint: (x: number, y: number, items: any[]) => void
showContextMenuAtPoint: (x: number, y: number, items: ContextMenuItem[]) => void
};
DevToolsAPI?: {
contextMenuItemSelected: (id: number) => void;