@nestjs/config
Version:
Configuration for NestJS: load .env files and custom configuration, validate it at startup, and read it through an injectable ConfigService.
15 lines (14 loc) • 451 B
TypeScript
/**
* Resolved by the `ConfigService` provider of `ConfigModule.forRoot()` once
* the configuration is loaded (including async "load" factories).
*/
export interface ConfigLoadedSignal {
promise: Promise<void>;
resolve: () => void;
}
/**
* Imported by `ConfigModule.forRoot()` only, so that a `ConfigModule` import
* without any `forRoot()` call doesn't wait for a signal that never comes.
*/
export declare class ConfigLoadedModule {
}