srt-validator
Version:
<h1 align="center">SrtValidator</h1>
17 lines (16 loc) • 589 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var BaseValidator = /** @class */ (function () {
function BaseValidator(parsedJSON) {
this.parsedJSON = parsedJSON;
this.result = [];
this.parsedJSON = parsedJSON;
}
// Push to result
// Todo[@taoning2014]: Push the `ParseError` into the result array directly instead of destructing it
BaseValidator.prototype.addToResult = function (validationError) {
this.result.push(validationError);
};
return BaseValidator;
}());
exports.default = BaseValidator;
;