site/node_modules/mj-context-menu/js/parse.d.ts

15 lines
485 B
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
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]: any;
}, ...rest: any[]): any;
}