@nestjs/config
Version:
Configuration for NestJS: load .env files and custom configuration, validate it at startup, and read it through an injectable ConfigService.
8 lines (7 loc) • 382 B
TypeScript
import { Parser } from '../types/index.js';
/**
* Reads and parses env files. A variable defined in more than one file gets
* its value from the first file that defines it. The variables of the first
* file come first, so that chains of references are expanded in file order.
*/
export declare function readEnvFiles(envFilePaths: string[], parser: Parser): Record<string, any>;