Stratal API Reference
    Preparing search index...

    Interface DynamicModule

    Dynamic module returned by withRoot/withRootAsync

    Contains additional providers, controllers, consumers, and jobs that are added to the module when configured dynamically.

    interface DynamicModule {
        consumers?: Constructor[];
        controllers?: Constructor[];
        jobs?: Constructor[];
        module: Constructor;
        providers?: Provider<object>[];
    }

    Hierarchy

    Index

    Properties

    consumers?: Constructor[]
    controllers?: Constructor[]
    jobs?: Constructor[]
    module: Constructor

    Reference 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.

    providers?: Provider<object>[]