2017-05-08 02:13:56 +09:00
|
|
|
declare namespace ElectronContextMenu {
|
|
|
|
interface Options {
|
2017-08-30 12:33:49 +09:00
|
|
|
window?: Electron.BrowserWindow | Electron.WebviewTag;
|
2017-05-08 02:13:56 +09:00
|
|
|
showInspectElement?: boolean;
|
|
|
|
labels?: {
|
|
|
|
cut: string;
|
|
|
|
copy: string;
|
|
|
|
paste: string;
|
|
|
|
save: string;
|
|
|
|
copyLink: string;
|
|
|
|
inspect: string;
|
|
|
|
};
|
2017-05-08 19:29:49 +09:00
|
|
|
append?(...args: any[]): any;
|
|
|
|
prepend?(params: any, win: Electron.BrowserWindow): Electron.MenuItem[];
|
|
|
|
shouldShowMenu?(event: Event, params: any): boolean;
|
2017-05-08 02:13:56 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
declare module 'electron-context-menu' {
|
|
|
|
const create: (options?: ElectronContextMenu.Options) => void;
|
|
|
|
export = create;
|
|
|
|
}
|