Skip to main content

@terascope/utils / decorators

decorators

Functions

configurable()

configurable(value): (target, propertyKey, descriptor) => void

A decorator making changing the changing configurable property

Parameters

ParameterType
valueboolean

Returns

Function

Parameters
ParameterType
targetunknown
propertyKeystring
descriptorPropertyDescriptor
Returns

void

Source

packages/utils/src/decorators.ts:15


enumerable()

enumerable(enabled): (target, propertyKey, descriptor) => void

A decorator for making a method enumerable or none-enumerable

Parameters

ParameterTypeDefault value
enabledbooleantrue

Returns

Function

Parameters
ParameterType
targetunknown
propertyKeystring
descriptorPropertyDescriptor
Returns

void

Source

packages/utils/src/decorators.ts:26


locked()

locked(): (target, propertyKey, descriptor) => void

A decorator for locking down a method

Returns

Function

Parameters
ParameterType
targetunknown
propertyKeystring
descriptorPropertyDescriptor
Returns

void

Source

packages/utils/src/decorators.ts:2