openmrs-esm-core

O3 Framework / provide

Function: provide()

provide(config, sourceName): void

Defined in: packages/framework/esm-config/src/module-config/module-config.ts:292

Provides configuration values programmatically. This is an alternative to providing configuration through the config-file. Configuration provided this way will be merged with configuration from other sources.

Parameters

config

Config

A configuration object to merge into the existing configuration.

sourceName

string = 'provided'

An optional name to identify the source of this configuration, used for debugging purposes. Defaults to ‘provided’.

Returns

void