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

8 lines
287 B
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
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;
}