mj-context-menu
Version:
A generic context menu
15 lines (14 loc) • 489 B
TypeScript
import { Menu } from './menu.js';
import { Item } from './item.js';
import { ParserFactory, ParseMethod } from './parser_factory.js';
export declare class Parser {
private _initList;
private readonly _factory;
constructor(init?: [string, ParseMethod][]);
get factory(): ParserFactory;
items(_factory: ParserFactory, its: any[], ctxt: Menu): Item[];
parse({ type: kind, ...json }: {
type: string;
[k: string]: unknown;
}, ...rest: any[]): any;
}