Loxer - v3.0.0
    Preparing search index...

    Type Alias ModuleId

    ModuleId: [keyof LoxerModuleRegistry] extends [never]
        ? string
        : Extract<keyof LoxerModuleRegistry, string> | DefaultModuleId

    The type of a module id, as accepted by .module(...), .m(...), Loxer.getModuleLevel(...) and the moduleId trace option.

    • it is string as long as the LoxerModuleRegistry is not augmented - every existing usage keeps compiling untouched
    • once modules are registered there, it narrows to those ids plus the DefaultModuleIds, which makes a typo a compile error instead of a red INVALIDMODULE label at runtime

    See LoxerModuleRegistry for how to register the modules of a project.