Skip to main content

Interface: ModuleMetadata

Defines the structure of a module’s configuration in the Aurora framework. A module bundles related controllers, providers, and imports/exports into a cohesive unit.

Properties

controllers?

optional controllers: Type<unknown>[]

Controller classes that belong to this module. These will be instantiated and have their event handlers bound at startup.


exports?

optional exports: Token[]

Tokens of providers or controllers that this module makes available to modules that import it.

Remarks

Only exported tokens can be consumed by importing modules.


imports?

optional imports: Type<unknown>[]

Other modules whose exported providers/controllers should be available for injection within this module.

Remarks

Imported modules’ exports are merged into this module’s DI scope.


providers?

optional providers: Provider[]

Provider definitions (classes or useValue objects) registered in this module’s DI container. These are the services and values available for injection into controllers and other providers.