@npmstuff/argdown-core
Version:
A pluggable parser for the Argdown argumentation syntax
11 lines (10 loc) • 513 B
TypeScript
import { IArgdownPlugin } from "./IArgdownPlugin";
import { IArgdownResponse } from ".";
export declare class ArgdownPluginError extends Error {
plugin: string;
processor?: string;
code?: string;
constructor(plugin: string, code: string, message: string);
}
export declare const createMissingResponseFieldError: (plugin: IArgdownPlugin, field: string) => ArgdownPluginError;
export declare const checkResponseFields: (plugin: IArgdownPlugin, response: IArgdownResponse, fields: string[]) => void;