Global

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
Name Type Description
value function

Value.

configurable function

Configurable.

enumerable function

Enumerable.

Author:
License:
Source:
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).

Author:
License:
Source:
Throws:

Mixin decorator requires at least one mixin.

Type
SyntaxError
Returns:

Wrapped target class.

Type
function