Install
$ npm install decl
How to use
var cls = extend: ParentCls { this; } { // };
Class Statics
For defining static members on a class, simply pass a hash to the statics configuration key. These properties can then be accessed on class level. The this keyword resolves to the class within static members.
var cls = { NAME: 'my/class' { return thisNAME; } }; cls === 'my/class';typeof NAME === 'undefined';
ToDos
- Improve the documentation
- Add support for mixins/traits
- Add support for inheritence of static members (static super?)