ConfigService helps you to define your configuration in a JSON file.
/** * Config service */exportabstractclassConfigService {/** * Config loaded of config service * An `Observable` that emit whenever config loaded. */readonly configLoaded:Observable<any>;abstractinit():Promise<any>;/** * Gets config * T Return type of config value. * @param key Config key; * @returns config value */abstractgetConfig<T>(key:string):T;/** * Gets all config keys * @returns all keys */abstractgetAllKeys():string[];}
The path of the config file is determined in NarikCore module import.