decorator that attaches setters to properties
🔧 Install · 🧩 Example · 📜 API docs · 🔥 Releases · 💪🏼 Contribute · 🖐️ Help
$ npm i setter-decorator
Decorates a class as @settable
. This is required for @setter
to work.
ctor
any The class to decorate
Returns any The decorated class
Attaches a @setter
to a property.
fn
Setter The setter function
Returns PropertyDecorator A property decorator
All contributions are welcome!
MIT © 2021 stagas