Constructor Decorator
Typized and autoassigned arguments for JS class constructor.
Overview
Are you not tired of constantly writing like:
{ thisbaz = baz thisbal = bal thisfoo = foo thisfuu = fuu thisbar = bar thisbat = bat thisfie = fie thisfaa = faa } moduleexports = TypedEntity
Now you can avoid of it with the class extend:
const BaseClass = const Foo = const Bar = const Baz = { return foo: Foo Baz bar: Bar String baz: String bat: Boolean fie: String bal: String Number fuu: Date faa: Number } { super...arguments } moduleexports = TypedEntity
The types compare is enabled with an array OR-operator syntax support.
Donate
- BTC
3F275vPSCvYW19MHZqSjw79fEwwU4MbTgV
- LTC
MGMCQB3QAcrSBjU3eGJviqB2J2f5BNVRGr
- DOGE
D5m69FRDGEn3G3xuakvqTxUpGVt6NegKJp