@quadnix/octoDecoratorsModuleModule CallableModule<T>(packageName: string, schema: Constructable<ModuleSchema<T>>): (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.The IModule.onInit method is called to initialize the module, and is where you will define your infrastructure.@example@Module<MyInputInterface, OutputModel>('my-package', {})export class MyModule implements IModule<Region> { constructor(inputs: IMyInputs) { ... } async onInit(): Promise<Region> { ... }}@groupDecorators@seeDefinition of Modules.Type parametersTParameterspackageName: stringschema: Constructable<ModuleSchema<T>>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.Decorators
Definition of Modules.