UNPKG

617 BJavaScriptView Raw
1Object.defineProperty(exports, "__esModule", { value: true });
2var errors_1 = require("../stitching/errors");
3var CheckResultAndHandleErrors = /** @class */ (function () {
4 function CheckResultAndHandleErrors(info, fieldName) {
5 this.info = info;
6 this.fieldName = fieldName;
7 }
8 CheckResultAndHandleErrors.prototype.transformResult = function (result) {
9 return errors_1.checkResultAndHandleErrors(result, this.info, this.fieldName);
10 };
11 return CheckResultAndHandleErrors;
12}());
13exports.default = CheckResultAndHandleErrors;
14//# sourceMappingURL=CheckResultAndHandleErrors.js.map
\No newline at end of file