Abstract Class: Bind
Defined in: packages/config-bound/src/bind/bind.ts:14
A Bind retrieves the values of the Element from their source.
Extended by
Constructors
Constructor
ts
new Bind(name): Bind;Defined in: packages/config-bound/src/bind/bind.ts:17
Parameters
| Parameter | Type |
|---|---|
name | BindName |
Returns
Bind
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
name | readonly | BindName | packages/config-bound/src/bind/bind.ts:15 |
Methods
get()
ts
get<T>(sectionName, elementName): Promise<T | undefined>;Defined in: packages/config-bound/src/bind/bind.ts:34
Gets the value from the bind for a specific element
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
sectionName | string | The name of the Section |
elementName | string | The name of the Element |
Returns
Promise<T | undefined>
The value of the element
retrieve()
ts
abstract retrieve<T>(elementName): Promise<T | undefined>;Defined in: packages/config-bound/src/bind/bind.ts:26
Retrieves the value of the Bind.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
elementName | string | The name of the Element |
Returns
Promise<T | undefined>
The value of the element