UNPKG

promised-models

Version:

promise based, typed attributes, nested models and collections

14 lines (12 loc) 292 B
/** * Model with types */ var Model = require('../../lib/model'), Vow = require('vow'); module.exports = Model.inherit({ attributes: { string: Model.attributeTypes.String, number: Model.attributeTypes.Number, boolean: Model.attributeTypes.Boolean } });