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);
  }
};

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);
  }
};

--- 
+++ 
@@ -1,7 +1,7 @@
 const getType = require('../typeResolver');
 
 module.exports = {
-  isCoerced: function(value, typeDescriptor) {
+  isCoerced(value, typeDescriptor) {
     return value instanceof getType(typeDescriptor);
   },
   coerce(value, typeDescriptor) {
Fix eslint shorthand function assignment
