mock-violentmonkey
Version:
Mock violentmonkey's globals for testing userscripts
7 lines (6 loc) • 494 B
TypeScript
type RegisterMenuCommand = (caption: string, onclick: () => void) => string;
declare const registerMenuCommand: RegisterMenuCommand;
type UnregisterMenuCommand = (caption: string) => void;
declare const unregisterMenuCommand: UnregisterMenuCommand;
declare const triggerMenuCommand: (caption: string) => void;
export { registerMenuCommand as GM_registerMenuCommand, unregisterMenuCommand as GM_unregisterMenuCommand, triggerMenuCommand, type RegisterMenuCommand, type UnregisterMenuCommand, };