1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2025-01-21 20:52:11 +01:00
Mstdn/typings/electron-context-menu.d.ts

22 lines
693 B
TypeScript
Raw Normal View History

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