Version: 4.3

Class: ConfigurationLoader

Hierarchy

  • ConfigurationLoader

Methods

getConfigPaths

StaticgetConfigPaths(): Promise<string[]>

Defined in packages/core/src/utils/ConfigurationLoader.ts:41

Returns: Promise<string[]>


getConfiguration

StaticgetConfiguration<D>(validate?: boolean, options?: Partial<Configuration>): Promise<Configuration<D>>

Defined in packages/core/src/utils/ConfigurationLoader.ts:11

Type parameters:

NameTypeDefault
DIDatabaseDriverIDatabaseDriver

Parameters:

NameTypeDefault value
validatebooleantrue
optionsPartial<Configuration>{}

Returns: Promise<Configuration<D>>


getPackageConfig

StaticgetPackageConfig(): Promise<Dictionary>

Defined in packages/core/src/utils/ConfigurationLoader.ts:28

Returns: Promise<Dictionary>


getSettings

StaticgetSettings(): Promise<Settings>

Defined in packages/core/src/utils/ConfigurationLoader.ts:36

Returns: Promise<Settings>


getTsConfig

StaticgetTsConfig(tsConfigPath: string): Promise<Dictionary>

Defined in packages/core/src/utils/ConfigurationLoader.ts:83

Parameters:

NameType
tsConfigPathstring

Returns: Promise<Dictionary>


registerTsNode

StaticregisterTsNode(configPath?: string): Promise<void>

Defined in packages/core/src/utils/ConfigurationLoader.ts:61

Parameters:

NameTypeDefault value
configPathstring"tsconfig.json"

Returns: Promise<void>

Last updated on by Martin Adámek