UNPKG

@o3r/configuration

Version:

This module contains configuration-related features such as CMS compatibility, Configuration override, store and debugging. It enables your application runtime configuration and comes with an integrated ng builder to help you generate configurations suppo

37 lines 1.16 kB
import { Observable } from 'rxjs'; /** * Interface to define the error messages into component configuration */ export interface ErrorMessages { /** * Error message map */ errorMessages: { [key: string]: string; }; } /** * Interface to specify that the component has an ID */ export interface Identifiable { /** * Identifier */ id: string; } /** * Get the component and library's names based on the configuration name * @param configurationName Name of the component as found in the store * @returns Object containing library and component name. */ export declare function parseConfigurationName(configurationName: string): { library?: string; libraryName?: string; componentName: string; } | undefined; /** * Operator to get the configuration from store for a given component and merge it with the global config * @param defaultValue Default value of the configuration */ export declare function getConfiguration<T extends Record<string, unknown>>(defaultValue: T): <C extends Partial<T>>(source: Observable<C | undefined>) => Observable<T>; //# sourceMappingURL=configuration.d.ts.map