1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2025-02-27 05:54:15 +01:00
Mstdn/typings/electron-context-menu.d.ts

22 lines
683 B
TypeScript
Raw Permalink Normal View History

2017-05-08 02:13:56 +09:00
declare namespace ElectronContextMenu {
interface Options {
window?: Electron.BrowserWindow | Electron.WebviewTag;
2017-05-08 02:13:56 +09:00
showInspectElement?: boolean;
labels?: {
2017-08-30 16:15:13 +09:00
cut?: string;
copy?: string;
paste?: string;
save?: string;
copyLink?: string;
inspect?: string;
2017-05-08 02:13:56 +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;
}