Use decorators to satisfy a given schema.
- Interfaces for data functions
- Interface can be subset of data function
- Arbitrary data depth
$ npm install --save precept-decorator
export default {
@precept({
id: '',
name: '',
age: ''
})
data: () => ({
id: '',
name: '',
age: ''
})
}
Julian Claus and contributors.
MIT