"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.imgAccept = exports.accept = void 0;
exports.validator = validator;
var imgAccept = ['image/jpeg', 'image/png', 'image/jpg'];
exports.imgAccept = imgAccept;
var accept = imgAccept.join(',');
exports.accept = accept;

function validator(_, value) {
  if ((value === null || value === void 0 ? void 0 : value.success) === false) {
    return Promise.reject(value.msg);
  }

  return Promise.resolve(true);
}