UNPKG

promised-models

Version:

promise based, typed attributes, nested models and collections

15 lines (13 loc) 240 B
/** * String attribute */ var Attribute = require('../attribute'); module.exports = Attribute.inherit({ default: '', /** * @override {Attribute} */ parse: function (value) { return String(value); } });