@sitecore/sc-contenthub-webclient-sdk
Version:
Sitecore Content Hub WebClient SDK.
17 lines • 481 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidatorBase = void 0;
class ValidatorBase {
addFailure(failure) {
if (this._failures == null) {
this._failures = [];
}
this._failures.push(failure);
}
getFailures() {
var _a;
return (_a = this._failures) !== null && _a !== void 0 ? _a : [];
}
}
exports.ValidatorBase = ValidatorBase;
//# sourceMappingURL=validator-base.js.map