Skip to content

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

ParameterType
nameBindName

Returns

Bind

Properties

PropertyModifierTypeDefined in
namereadonlyBindNamepackages/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

ParameterTypeDescription
sectionNamestringThe name of the Section
elementNamestringThe 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

ParameterTypeDescription
elementNamestringThe name of the Element

Returns

Promise<T | undefined>

The value of the element