UNPKG

720 BTypeScriptView Raw
1import { ModuleMetadata } from '../../interfaces/modules/module-metadata.interface';
2/**
3 * Decorator that marks a class as a [module](https://docs.nestjs.com/modules).
4 *
5 * Modules are used by Nest to organize the application structure into scopes. Controllers
6 * and Providers are scoped by the module they are declared in. Modules and their
7 * classes (Controllers and Providers) form a graph that determines how Nest
8 * performs [Dependency Injection (DI)](https://docs.nestjs.com/providers#dependency-injection).
9 *
10 * @param metadata module configuration metadata
11 *
12 * @see [Modules](https://docs.nestjs.com/modules)
13 *
14 * @publicApi
15 */
16export declare function Module(metadata: ModuleMetadata): ClassDecorator;