9 lines
305 B
TypeScript
Raw Normal View History

import { MenuCommandItem } from "../menus/context_menu.js";
import { CommandNames } from "./app_context.js";
type ListenerReturnType = void | Promise<void>;
export interface SelectMenuItemEventListener<T extends CommandNames> {
selectMenuItemHandler(item: MenuCommandItem<T>): ListenerReturnType;
}