UNPKG

524 BTypeScriptView Raw
1import { LintError } from "./lintError";
2/**
3 * Takes the full text of a .lint file and returns the contents of the file
4 * with all error markup removed
5 */
6export declare function removeErrorMarkup(text: string): string;
7/**
8 * Takes the full text of a .lint file and returns an array of LintErrors
9 * corresponding to the error markup in the file.
10 */
11export declare function parseErrorsFromMarkup(text: string): LintError[];
12export declare function createMarkupFromErrors(code: string, lintErrors: LintError[]): string;