2.0.4 • Published 6 years ago

precept-decorator v2.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

precept-decorator

Use decorators to satisfy a given schema.

Features

  • Interfaces for data functions
  • Interface can be subset of data function
  • Arbitrary data depth

Installation

$ npm install --save precept-decorator

Usage

export default {
  @precept({
    id: '',
    name: '',
    age: ''
  })
  data: () => ({
    id: '',
    name: '',
    age: ''
  })
}

Author

Julian Claus and contributors.

License

MIT

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago