UNPKG

724 BTypeScriptView Raw
1import { Type } from '../type.interface';
2import { ModuleMetadata } from './module-metadata.interface';
3/**
4 * Interface defining a Dynamic Module.
5 *
6 * @see [Dynamic Modules](https://docs.nestjs.com/modules#dynamic-modules)
7 *
8 * @publicApi
9 */
10export interface DynamicModule extends ModuleMetadata {
11 /**
12 * A module reference
13 */
14 module: Type<any>;
15 /**
16 * When "true", makes a module global-scoped.
17 *
18 * Once imported into any module, a global-scoped module will be visible
19 * in all modules. Thereafter, modules that wish to inject a service exported
20 * from a global module do not need to import the provider module.
21 *
22 * @default false
23 */
24 global?: boolean;
25}