23 lines
No EOL
749 B
TypeScript
23 lines
No EOL
749 B
TypeScript
import { ConfigManager, type ConfigManagerOptions } from './config-manager';
|
|
|
|
// Export only what's actually used
|
|
export { ConfigManager } from './config-manager';
|
|
export type { ConfigManagerOptions } from './config-manager';
|
|
export { toUnifiedConfig } from './schemas/unified-app.schema';
|
|
|
|
// Export used types
|
|
export type { BaseAppConfig, UnifiedAppConfig } from './schemas';
|
|
|
|
// Export schemas that are used by apps
|
|
export {
|
|
baseAppSchema,
|
|
dragonflyConfigSchema,
|
|
mongodbConfigSchema,
|
|
postgresConfigSchema,
|
|
questdbConfigSchema,
|
|
} from './schemas';
|
|
|
|
// createAppConfig function for apps/stock
|
|
export function createAppConfig<T>(schema: unknown, options?: ConfigManagerOptions): ConfigManager<T> {
|
|
return new ConfigManager<T>(options);
|
|
} |