Module
Callable
Type parameters
- T: UnknownModule
Parameters
packageName: string
The name of the package under which the module is registered. Selecting a unique package name helps avoid collisions between same module class names across different libraries. You will reuse the same package name throughout your library for different Octo components you create.
schema: Constructable<ModuleSchema<T>>
The schema of the module, describing the inputs it accepts.
Returns (constructor: Constructable<T>) => void
The decorated class.
Parameters
constructor: Constructable<T>
Returns void
A
@Moduleis a class decorator and must be placed on top of a class representing a module.Decorating a class registers it with Octo, which is what makes the module loadable by name with Octo.loadModule.
Decorators
Definition of Modules.