BatchGetterSetter is an abstract class with no properties of its own and one protected method: _createGetterAndOrSetterForEach(). If you have a bunch of properties you want to create getter and/or setter functions for, and they will all use the same repetitive code, place the names of each property in an array of strings and pass that array into _createGetterAndOrSetterForEach(properties, configuration). The configuration parameter is an object that you place a getter and/or setter function inside of. This will be the repetitive code called for each property. Check the GetterSetterConfiguration interface for more info.
This package has been deprecated
Author message:
Use @writetome51/base-class instead
batch-getter-setter
1.0.2 • Public • PublishedPackage Sidebar
Install
npm i batch-getter-setter
Weekly Downloads
0
Version
1.0.2
License
MIT
Unpacked Size
5.91 kB
Total Files
5