@criticalmanufacturing/dev-i18n-transform
Version:
i18n <--> gettext transform
46 lines (45 loc) • 824 B
TypeScript
import { File } from "../model/file";
/**
* Validator interface
*/
export interface Validator {
/**
* Run the validator
* @returns A list of validation results; empty if there were no issues found.
*/
validate(): ValidationResult[];
}
/**
* Validation Result Result
*/
export declare enum ValidationResultType {
Debug = 0,
Information = 1,
Warning = 2,
Error = 3
}
/**
* Validation Result literal
*/
export interface ValidationResult {
/**
* Type of the validation result
*/
type: ValidationResultType;
/**
* Validation message
*/
message: string;
/**
* File
*/
file: File;
/**
* Line number
*/
line: number;
/**
* Col number
*/
col: number;
}