UNPKG

@nestjs/config

Version:

Configuration for NestJS: load .env files and custom configuration, validate it at startup, and read it through an injectable ConfigService.

5 lines (4 loc) • 235 B
import { ConfigObject } from '../types/index.js'; type ConfigFactoryReturnValue<T extends ConfigObject> = T | Promise<T>; export type ConfigFactory<T extends ConfigObject = ConfigObject> = () => ConfigFactoryReturnValue<T>; export {};