UNPKG

@syntropysoft/praetorian

Version:

Praetorian CLI – A universal multi-environment configuration validator for DevSecOps teams. Validate, compare, and secure YAML/ENV files with ease.

38 lines 1.2 kB
/** * TODO: DECLARATIVE PROGRAMMING PATTERN * * This file demonstrates excellent declarative programming practices: * - Pure functions with functional array methods (find, flatMap, some) * - Immutable data handling with spread operator * - Strategy pattern with adapter selection * - No imperative loops or state mutations * - Clear data transformations with join() * - Factory pattern with static methods * * Mutation Score: 94.74% - Declarative patterns make testing straightforward! */ import { FileAdapter } from './base/FileAdapter'; export declare class FileAdapterFactory { private static adapters; /** * Get the appropriate adapter for a file */ static getAdapter(filePath: string): FileAdapter; /** * Get all supported file extensions */ static getSupportedExtensions(): string[]; /** * Get all available adapters */ static getAllAdapters(): FileAdapter[]; /** * Register a new adapter */ static registerAdapter(adapter: FileAdapter): void; /** * Check if a file format is supported */ static isSupported(filePath: string): boolean; } //# sourceMappingURL=FileAdapterFactory.d.ts.map