1.2.2 • Published 3 years ago

setter-decorator v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Install

$ npm i setter-decorator

API

Table of Contents

settable

src/index.ts:35-82

Decorates a class as @settable. This is required for @setter to work.

Parameters

  • ctor any The class to decorate

Returns any The decorated class

setter

src/index.ts:122-143

Attaches a @setter to a property.

Parameters

  • fn Setter The setter function

Returns PropertyDecorator A property decorator

Contribute

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2021 stagas

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

4 years ago