QuickProp
If you are familiar with Vue.js component's prop, you already knows how to use QuickProp. QuickProp is a JavaScript data model made easy.
Installation
npm i quick-prop
Usage
; { super id: type: Number String { return } title: type: String required: true completed: type: Boolean false todo } const todo = title: 'Example todo' todocompleted = true console
Result:
Todo
- Better implementation
- Add Type Decorator
License
License under MIT