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/functions/mergeSemanticV3.md.
  • 简体中文
  • Function: mergeSemanticV3()

    function mergeSemanticV3(base: 
      | ManifestV3Semantic
      | undefined, patch: 
      | ManifestV3Semantic
      | undefined): ManifestV3Semantic;

    Defined in: module-loader/manifest.ts:269

    合并两份 semantic:以 base 字段为底层,逐字段用 patch 覆盖。 数组字段:去重合并(base ∪ patch),保证顺序 base → patch。 对象字段(events / dbTables / publicApi 单元素):patch 非空时整体替换。 缺失值(undefined / 空数组 / 空对象)视为「不覆盖」。

    Parameters

    ParameterType
    base| ManifestV3Semantic | undefined
    patch| ManifestV3Semantic | undefined

    Returns

    ManifestV3Semantic