@terascope/utils / decorators
decorators
Functions
configurable()
configurable(
value
): (target
,propertyKey
,descriptor
) =>void
A decorator making changing the changing configurable property
Parameters
Parameter | Type |
---|---|
value | boolean |
Returns
Function
Parameters
Parameter | Type |
---|---|
target | unknown |
propertyKey | string |
descriptor | PropertyDescriptor |
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
Parameter | Type | Default value |
---|---|---|
enabled | boolean | true |
Returns
Function
Parameters
Parameter | Type |
---|---|
target | unknown |
propertyKey | string |
descriptor | PropertyDescriptor |
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
Parameter | Type |
---|---|
target | unknown |
propertyKey | string |
descriptor | PropertyDescriptor |
Returns
void