@mbc-cqrs-serverless/core
Version:
CQRS and event base core
19 lines (18 loc) • 547 B
TypeScript
import { ClassConstructor } from 'class-transformer';
import { EnvironmentVariables } from '../env.validation';
/**
* Configuration options for the root AppModule.
* Used when bootstrapping the NestJS application.
*
* @example
* bootstrap({
* rootModule: AppModule,
* envCls: CustomEnvironmentVariables,
* })
*/
export interface AppModuleOptions {
/** The root NestJS module class */
rootModule: any;
/** Optional custom environment variables class for validation */
envCls?: ClassConstructor<EnvironmentVariables>;
}