Skip to content

Class: TypedConfigBound<T>

Defined in: packages/config-bound/src/configBound.ts:176

Type Parameters

Type Parameter
T extends ConfigSchema

Constructors

Constructor

ts
new TypedConfigBound<T>(configBound): TypedConfigBound<T>;

Defined in: packages/config-bound/src/configBound.ts:179

Parameters

ParameterType
configBoundConfigBound

Returns

TypedConfigBound<T>

Accessors

binds

Get Signature

ts
get binds(): Bind[];

Defined in: packages/config-bound/src/configBound.ts:186

Returns

Bind[]


name

Get Signature

ts
get name(): string;

Defined in: packages/config-bound/src/configBound.ts:183

Returns

string


sections

Get Signature

ts
get sections(): Section[];

Defined in: packages/config-bound/src/configBound.ts:189

Returns

Section[]

Methods

addBind()

ts
addBind(bind): void;

Defined in: packages/config-bound/src/configBound.ts:193

Parameters

ParameterType
bindBind

Returns

void


addSection()

ts
addSection(section): void;

Defined in: packages/config-bound/src/configBound.ts:197

Parameters

ParameterType
sectionSection

Returns

void


get()

ts
get<K, E>(sectionName, elementName): Promise<
  | InferConfigType<T>[K][E]
| undefined>;

Defined in: packages/config-bound/src/configBound.ts:205

Type Parameters

Type Parameter
K extends string | number | symbol
E extends string | number | symbol

Parameters

ParameterType
sectionNameK
elementNameE

Returns

Promise< | InferConfigType<T>[K][E] | undefined>


getOrThrow()

ts
getOrThrow<K, E>(sectionName, elementName): Promise<InferConfigType<T>[K][E]>;

Defined in: packages/config-bound/src/configBound.ts:215

Type Parameters

Type Parameter
K extends string | number | symbol
E extends string | number | symbol

Parameters

ParameterType
sectionNameK
elementNameE

Returns

Promise<InferConfigType<T>[K][E]>


getSections()

ts
getSections(): Section[];

Defined in: packages/config-bound/src/configBound.ts:201

Returns

Section[]


getValidationErrors()

ts
getValidationErrors(): Promise<object[]>;

Defined in: packages/config-bound/src/configBound.ts:229

Returns

Promise<object[]>


validate()

ts
validate(): Promise<void>;

Defined in: packages/config-bound/src/configBound.ts:225

Returns

Promise<void>