OptionalconsumersOptionalcontrollersOptionaljobsReference to the module class that created this dynamic module
Required for dynamic modules to support lifecycle methods (configure, onInitialize, onShutdown). ModuleRegistry uses this to instantiate the actual module class instead of an anonymous wrapper.
Note: This is NOT for provider scoping (tsyringe is always global). It's purely for preserving the class reference for lifecycle method calls.
Optionalproviders
Dynamic module returned by withRoot/withRootAsync
Contains additional providers, controllers, consumers, and jobs that are added to the module when configured dynamically.