Stratal API Reference
    Preparing search index...

    Interface ConfigNamespace<TKey, TEnv, TConfig>

    Configuration namespace registration result

    interface ConfigNamespace<TKey extends string, TEnv, TConfig extends object> {
        factory: (env: TEnv) => TConfig;
        KEY: InjectionToken<TConfig>;
        namespace: TKey;
        asProvider(): FactoryProvider<TConfig>;
    }

    Type Parameters

    • TKey extends string
    • TEnv
    • TConfig extends object
    Index

    Properties

    Methods

    Properties

    factory: (env: TEnv) => TConfig

    The factory function that receives env and returns config

    Auto-derived injection token (e.g., 'database' -> Symbol('CONFIG:database'))

    namespace: TKey

    The namespace key

    Methods