Class decorator that enables auto-registration of an unregistered class when the class is first resolved from the container.
Example:
@AutoRegister()class Wizard {}const wizard = container.resolve(Wizard);container.isRegistered(Wizard); // => true Copy
@AutoRegister()class Wizard {}const wizard = container.resolve(Wizard);container.isRegistered(Wizard); // => true
Class decorator that enables auto-registration of an unregistered class when the class is first resolved from the container.
Example: