project-setup-validation-yaml
Version:
Validate environment variables, files and directories. Supports YAML configuration
23 lines (22 loc) • 913 B
TypeScript
export default function projectSetupWithYAML(projectSetupValidationYAMLPath: string): ProjectSetupWithYAML;
interface ICustomVariablesYAML {
CWD: string;
}
type CustomVariablesYAMLTypes = keyof ICustomVariablesYAML;
declare class ProjectSetupWithYAML {
private YAMLSchemaPath;
private customVariablesYAML;
private config;
constructor(projectSetupValidationYAMLPath: string);
validate<T = any>(): Readonly<T>;
setCustomReporter(reporter: Function): this;
setCustomVariable(customVariableName: CustomVariablesYAMLTypes, value: string): ProjectSetupWithYAML;
setCustomVariable(customVariableName: string, value: string): ProjectSetupWithYAML;
private validateProjectSetup;
private getValidatorFromType;
private validateYAMLProjectSetupAgainstSchema;
private compileYAMLSchema;
private loadYAMLConfiguration;
private setDefaultVariablesValues;
}
export {};