Skip to main content
Version: 4.4

Class: ConfigurationLoader#

core.ConfigurationLoader

Hierarchy#

  • ConfigurationLoader

Constructors#

constructor#

+ new ConfigurationLoader(): ConfigurationLoader

Returns: ConfigurationLoader

Methods#

getConfigPaths#

StaticgetConfigPaths(): Promise<string[]>

Returns: Promise<string[]>

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


getConfiguration#

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

Type parameters:#

NameTypeDefault
DIDatabaseDriver<Connection, D>IDatabaseDriver<Connection\>

Parameters:#

NameTypeDefault value
validatebooleantrue
optionsPartial<Configuration<IDatabaseDriver<Connection>>>...

Returns: Promise<Configuration<D>>

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


getPackageConfig#

StaticgetPackageConfig(): Promise<Dictionary<any>>

Returns: Promise<Dictionary<any>>

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


getSettings#

StaticgetSettings(): Promise<Settings>

Returns: Promise<Settings>

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


getTsConfig#

StaticgetTsConfig(tsConfigPath: string): Promise<Dictionary<any>>

Parameters:#

NameType
tsConfigPathstring

Returns: Promise<Dictionary<any>>

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


registerTsNode#

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

Parameters:#

NameTypeDefault value
configPathstring'tsconfig.json'

Returns: Promise<void>

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

Last updated on by Martin Adámek