Skip to main content

ConfigManager

The ConfigManager offers functionality for working with the Archibald configuration.

import { ConfigManager } from '@archibald/config';

set

This method sets the Archibald configuration. It merges default config with one that is passed as parameter, and sets it in the SystemManager.

import { ConfigManager } from '@archibald/config';

ConfigManager.set(PARAMETERS);

Parameters

NameTypeDescriptionDefault
configDeepPartial<DefaultArchibaldConfig>A subset of the configuration.
valuebooleanIf true the existing configuration will be overridden with the passed one. Otherwise both configuration will be merged.false

get

This method gets the Archibald configuration from the SystemManager. If the configuration not yet set, it will create it and set it in the SystemManager.

import { ConfigManager } from '@archibald/config';

const configuration = ConfigManager.get();