# old/mod.ts
export namespace Utils {
  export function foo() {}
}

# new/mod.ts
export namespace Utils {
  export function foo() {}
  export function bar() {}
}

# output.json
{
  "modifiedModules": {
    "file:///mod.ts": {
      "modified": [
        {
          "name": "Utils",
          "declarations": {
            "modified": [
              {
                "kind": "namespace",
                "defChanges": {
                  "type": "namespace",
                  "addedElements": [
                    {
                      "name": "bar",
                      "declarations": [
                        {
                          "location": {
                            "filename": "file:///mod.ts",
                            "line": 2,
                            "col": 2,
                            "byteIndex": 54
                          },
                          "declarationKind": "export",
                          "kind": "function",
                          "def": {
                            "params": [],
                            "returnType": {
                              "repr": "void",
                              "kind": "keyword",
                              "value": "void"
                            },
                            "hasBody": true
                          }
                        }
                      ]
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  }
}
