UNPKG

@nestjs/common

Version:

Decorators, pipes, exceptions and utilities for NestJS applications: @Controller(), @Injectable(), @Body(), ValidationPipe, HttpException and more.

17 lines (16 loc) • 723 B
import { ModuleMetadata } from '../../interfaces/modules/module-metadata.interface.js'; /** * Decorator that marks a class as a [module](https://docs.nestjs.com/modules). * * Modules are used by Nest to organize the application structure into scopes. Controllers * and Providers are scoped by the module they are declared in. Modules and their * classes (Controllers and Providers) form a graph that determines how Nest * performs [Dependency Injection (DI)](https://docs.nestjs.com/providers#dependency-injection). * * @param metadata module configuration metadata * * @see [Modules](https://docs.nestjs.com/modules) * * @publicApi */ export declare function Module(metadata: ModuleMetadata): ClassDecorator;