/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/common/interfaces/modules/module-metadata.interface.ts
45 строк
1 KB
Micael Levi L. Cavalcante
fix(common): drop broken support for promises on `exports` of modules
07 ноя 2024, 15:49
07 ноя 2024, 15:49
5bc7f91
Код
Авторство
О чём код?
import { Abstract } from '../abstract.interface'; import { Type } from '../type.interface'; import { DynamicModule } from './dynamic-module.interface'; import { ForwardReference } from './forward-reference.interface'; import { Provider } from './provider.interface'; /** * Interface defining the property object that describes the module. * * @see [Modules](https://docs.nestjs.com/modules) * * @publicApi */ export interface ModuleMetadata { /** * Optional list of imported modules that export the providers which are * required in this module. */ imports?: Array< Type<any> | DynamicModule | Promise<DynamicModule> | ForwardReference >; /** * Optional list of controllers defined in this module which have to be * instantiated. */ controllers?: Type<any>[]; /** * Optional list of providers that will be instantiated by the Nest injector * and that may be shared at least across this module. */ providers?: Provider[]; /** * Optional list of the subset of providers that are provided by this module * and should be available in other modules which import this module. */ exports?: Array< | DynamicModule | string | symbol | Provider | ForwardReference | Abstract<any> | Function >; }