const getType = require('../typeResolver');

module.exports = {
  isCoerced: function(value, typeDescriptor) {
    return value instanceof getType(typeDescriptor);
  },
  coerce(value, typeDescriptor) {
    const type = getType(typeDescriptor);

    return new type(value);
  }
};

const getType = require('../typeResolver');

module.exports = {
  isCoerced(value, typeDescriptor) {
    return value instanceof getType(typeDescriptor);
  },
  coerce(value, typeDescriptor) {
    const type = getType(typeDescriptor);

    return new type(value);
  }
};

Fix eslint shorthand function assignment
Fix eslint shorthand function assignment
