"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.toErrors = void 0;

var toErrors = function toErrors(errorMessages) {
  return errorMessages.map(function (e) {
    return {
      text: e,
      type: 'error'
    };
  });
};

exports.toErrors = toErrors;