CheckResultAndHandleErrors.js 617 B

1234567891011121314
  1. Object.defineProperty(exports, "__esModule", { value: true });
  2. var errors_1 = require("../stitching/errors");
  3. var 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. }());
  13. exports.default = CheckResultAndHandleErrors;
  14. //# sourceMappingURL=CheckResultAndHandleErrors.js.map