Methods
bind(target, key, descriptor) → {function}
Bind decorator.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
target |
Object | Target. |
||||||||||||
key |
string | Target key. |
||||||||||||
descriptor |
Object | Descriptor for the target being modified. Properties
|
Throws:
-
Bind decorator can only be applied to a method.
- Type
- SyntaxError
Returns:
Bound function.
- Type
- function
mixin(…mixins) → {function}
Mixin decorator.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
mixins |
Object |
<repeatable> |
Mixin(s). |
Throws:
-
Mixin decorator requires at least one mixin.
- Type
- SyntaxError
Returns:
Wrapped target class.
- Type
- function