mirror of
https://github.com/rhysd/Mstdn.git
synced 2025-02-02 06:52:13 +01:00
22 lines
681 B
TypeScript
22 lines
681 B
TypeScript
declare namespace ElectronContextMenu {
|
|
interface Options {
|
|
window?: Electron.BrowserWindow | Electron.WebViewElement;
|
|
showInspectElement?: boolean;
|
|
labels?: {
|
|
cut: string;
|
|
copy: string;
|
|
paste: string;
|
|
save: string;
|
|
copyLink: string;
|
|
inspect: string;
|
|
};
|
|
append?(...args: any[]): any;
|
|
prepend?(params: any, win: Electron.BrowserWindow): Electron.MenuItem[];
|
|
shouldShowMenu?(event: Event, params: any): boolean;
|
|
}
|
|
}
|
|
declare module 'electron-context-menu' {
|
|
const create: (options?: ElectronContextMenu.Options) => void;
|
|
export = create;
|
|
}
|