nest-simple-config
Version:
A powerful and flexible configuration management library for NestJS applications. Supports JSON, YAML file loading, environment variable overrides, immutable configurations, and type-safe configuration access with dependency injection.
12 lines (11 loc) • 482 B
TypeScript
/// <reference types="node" />
import { PathLike } from "fs";
import { ConfigurationProvider } from "./config-provider.abstract";
export declare class FileConfigurationProvider extends ConfigurationProvider {
readonly filename: PathLike;
readonly optional: boolean;
protected readonly fileLoader: (path: PathLike) => any;
constructor(filename: PathLike, optional: boolean, fileLoader: (path: PathLike) => any);
loadConfigObject(): any;
toString(): string;
}