Skip to content

Commit

Permalink
Allow an object with just a mergeDeep method to qualify as a type
Browse files Browse the repository at this point in the history
  • Loading branch information
JaapRood committed May 3, 2018
1 parent dee949e commit 35e04f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ exports.isIterableSchema = function(maybeSchema) {
exports.isType = function(maybeType) {
return !!(maybeType && (
_isFunction(maybeType.factory) ||
_isFunction(maybeType.serialize)
_isFunction(maybeType.serialize) ||
_isFunction(maybeType.mergeDeep)
))
}

Expand Down

0 comments on commit 35e04f1

Please sign in to comment.