mirror of
https://github.com/electron/electron.git
synced 2026-01-09 23:48:01 -05:00
chore: convert more files to TypeScript (#18820)
This commit is contained in:
committed by
Jeremy Apthorp
parent
134d76dcdd
commit
c79613b037
11
typings/internal-ambient.d.ts
vendored
11
typings/internal-ambient.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user