1 | Object.defineProperty(exports, "__esModule", { value: true });
|
2 | var errors_1 = require("../stitching/errors");
|
3 | var CheckResultAndHandleErrors = (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 | }());
|
13 | exports.default = CheckResultAndHandleErrors;
|
14 |
|
\ | No newline at end of file |