UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

21 lines 1.01 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FileCheckContext = void 0; const domain_objects_1 = require("domain-objects"); const joi_1 = __importDefault(require("joi")); const schema = joi_1.default.object().keys({ relativeFilePath: joi_1.default.string().required(), projectPractices: joi_1.default.array().items(joi_1.default.string()).required(), projectVariables: joi_1.default.object().required(), // specifies which variables to use declaredFileContents: joi_1.default.string().allow(null).required(), getProjectRootDirectory: joi_1.default.function().required(), required: joi_1.default.boolean().required(), }); class FileCheckContext extends domain_objects_1.DomainObject { } exports.FileCheckContext = FileCheckContext; FileCheckContext.schema = schema; //# sourceMappingURL=FileCheckContext.js.map