parser_factory.d.ts 287 B

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