site/node_modules/mj-context-menu/js/parser_factory.d.ts
2024-10-14 08:09:33 +02:00

8 lines
287 B
TypeScript

export declare type ParseMethod = (factory: ParserFactory, json: any, ...aux: any[]) => any;
export declare class ParserFactory {
private _parser;
constructor(init: [string, ParseMethod][]);
get(name: string): ParseMethod;
add(name: string, method: ParseMethod): void;
}