35 lines
1.3 KiB
TypeScript
35 lines
1.3 KiB
TypeScript
import { Abstract } from '../abstract.interface';
|
|
import { Type } from '../type.interface';
|
|
import { DynamicModule } from './dynamic-module.interface';
|
|
import { ForwardReference } from './forward-reference.interface';
|
|
import { Provider } from './provider.interface';
|
|
/**
|
|
* Interface defining the property object that describes the module.
|
|
*
|
|
* @see [Modules](https://docs.nestjs.com/modules)
|
|
*
|
|
* @publicApi
|
|
*/
|
|
export interface ModuleMetadata {
|
|
/**
|
|
* Optional list of imported modules that export the providers which are
|
|
* required in this module.
|
|
*/
|
|
imports?: Array<Type<any> | DynamicModule | Promise<DynamicModule> | ForwardReference>;
|
|
/**
|
|
* Optional list of controllers defined in this module which have to be
|
|
* instantiated.
|
|
*/
|
|
controllers?: Type<any>[];
|
|
/**
|
|
* Optional list of providers that will be instantiated by the Nest injector
|
|
* and that may be shared at least across this module.
|
|
*/
|
|
providers?: Provider[];
|
|
/**
|
|
* Optional list of the subset of providers that are provided by this module
|
|
* and should be available in other modules which import this module.
|
|
*/
|
|
exports?: Array<DynamicModule | Promise<DynamicModule> | string | symbol | Provider | ForwardReference | Abstract<any> | Function>;
|
|
}
|