@quadnix/octoDecoratorsModuleModule CallableModule(options?: IModuleOptions): (constructor: any) => voidA @Module is a class decorator to be placed on top of a class that represents a module.A Module class must implement the IModule interface.A Module class constructor is injected with the outputs of the modules it imports.The IModule.onInit method is called to initialize the module, and is where you will define your infrastructure.@example@Module({ args: [{ isArg: (app: App) => app instanceof App, name: 'app' }], imports: [OtherModule], postModelActionHooks: [{ ACTION_NAME: 'SomeAction', collectInput: () => { ... }, handle: () => { ... } }],})export class MyModule implements IModule<Region> { constructor(app: App) { ... } async onInit(): Promise<Region> { ... }}@seeDefinition of Modules.Parametersoptions: IModuleOptions = {}Options to the module.Returns (constructor: any) => voidThe decorated class.(constructor: any): voidParametersconstructor: anyReturns void
A
@Module
is a class decorator to be placed on top of a class that represents a module.Definition of Modules.