UNPKG

fashion-model

Version:

JavaScript library for defining types and their properties with support for wrapping/unwrapping and serialization/deserialization.

13 lines (10 loc) 254 B
module.exports = require('./Model').extend({ typeName: 'object', wrap: false, coerce: function (value, options) { if ((value == null) || (typeof value === 'object')) { return value; } this.coercionError(value, options); } });