The type of the class to be registered.
The identifier used to register the class in the DI container.
Optional
deprecated: booleanIf true, the dependency is deprecated and a warning is logged only once upon the first resolution of the dependency.
The decorator function to be applied on the class.
Rest
...args: unknown[]Identifier for more information on identifiers.
@Register('MyClassIdentifier')
class MyClass {
// ...
}
A decorator to register a class in the TSinjex DI (Dependency Injection) container.