DynamicModule
Interface defining a Dynamic Module.
interface DynamicModule extends ModuleMetadata {
module: Type<any>
global?: boolean
// inherited from nest/packages/common/ModuleMetadata
imports?: Array<Type<any> | DynamicModule | Promise<DynamicModule> | ForwardReference>
controllers?: Type<any>[]
providers?: Provider[]
exports?: Array<DynamicModule | Promise<DynamicModule> | string | symbol | Provider | ForwardReference | Abstract<any> | Function>
}
See also
Properties
Property | Description |
---|---|
module: Type<any>
|
A module reference |
global?: boolean
|
When "true", makes a module global-scoped. Once imported into any module, a global-scoped module will be visible in all modules. Thereafter, modules that wish to inject a service exported from a global module do not need to import the provider module. |