Skip to main content
Version: 4.5

Class: ConfigurationLoader#

core.ConfigurationLoader

Constructors#

constructor#

+ new ConfigurationLoader(): ConfigurationLoader

Returns: ConfigurationLoader

Methods#

getConfigPaths#

StaticgetConfigPaths(): Promise<string[]>

Returns: Promise<string[]>

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


getConfiguration#

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

Type parameters:#

NameTypeDefault
DIDatabaseDriver<Connection, D>IDatabaseDriver<Connection>

Parameters:#

NameTypeDefault value
validatebooleantrue
options?Partial<Options<IDatabaseDriver<Connection>>>-

Returns: Promise<Configuration<D>>

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


getPackageConfig#

StaticgetPackageConfig(): Promise<Dictionary<any>>

Returns: Promise<Dictionary<any>>

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


getSettings#

StaticgetSettings(): Promise<Settings>

Returns: Promise<Settings>

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


getTsConfig#

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

Parameters:#

NameType
tsConfigPathstring

Returns: Promise<Dictionary<any>>

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


loadEnvironmentVars#

StaticloadEnvironmentVars<D>(options?: Options<D> | Configuration<D>): Partial<Options<D>>

Type parameters:#

NameType
DIDatabaseDriver<Connection, D>

Parameters:#

NameType
options?Options<D> | Configuration<D>

Returns: Partial<Options<D>>

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


registerTsNode#

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

Parameters:#

NameTypeDefault value
configPathstring'tsconfig.json'

Returns: Promise<void>

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

Last updated on by Renovate Bot