UNPKG

@nestjs/common

Version:

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

13 lines (12 loc) • 420 B
/** * Decorator that 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. * * @see [Global modules](https://docs.nestjs.com/modules#global-modules) * * @publicApi */ export declare function Global(): ClassDecorator;