import { DeepPartial } from '../common/shared-types' ; import { ReadOnlyRequired } from '../common/types/common-types' ; import { MpcastConfig } from './mpcast-config' ; import { defaultConfig } from './default-config' ; import { mergeConfig } from './merge-config' ; let activeConfig = defaultConfig ; /**
 * Override the default config by merging in the supplied values. Should only be used prior to
 * bootstrapping the app.
 */ export function setConfig ( userConfig ) { activeConfig = mergeConfig ( activeConfig , userConfig ) ; } /**
 * Returns the app config object. In general this function should only be
 * used before bootstrapping the app. In all other contexts, the  ConfigService * should be used to access config settings.
  export function getConfig ( ) { return activeConfig ; }