For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/module-loader/type-aliases/ModuleDescriptor.md.
  • 简体中文
  • Type Alias: ModuleDescriptor

    type ModuleDescriptor = {
      id: ModuleId;
      afterWorldLoad?: boolean;
      lifecycle: ModuleLifecycle;
    };

    Defined in: module-loader/runtime.ts:84

    模块注册描述符(由 ModuleRegistry.register 提交)。

    Properties

    PropertyTypeDescriptionDefined in
    idModuleId模块身份:优先用 catalog/manifest id(如 feature-afk)。 启停同时按 catalog id 与 configKey 双索引查询。module-loader/runtime.ts:89
    afterWorldLoad?boolean为 true 时 init 推迟到 worldLoad 之后。module-loader/runtime.ts:91
    lifecycleModuleLifecycle生命周期钩子集合。module-loader/runtime.ts:93