# old/mod.ts
export function foo(a: string) {}

# new/mod.ts
export function bar(a: number) {}

# output.json
{
  "modifiedModules": {
    "file:///mod.ts": {
      "added": [
        {
          "name": "bar",
          "declarations": [
            {
              "location": {
                "filename": "file:///mod.ts",
                "line": 0,
                "col": 0,
                "byteIndex": 0
              },
              "declarationKind": "export",
              "kind": "function",
              "def": {
                "params": [
                  {
                    "kind": "identifier",
                    "name": "a",
                    "optional": false,
                    "tsType": {
                      "repr": "number",
                      "kind": "keyword",
                      "value": "number"
                    }
                  }
                ],
                "returnType": {
                  "repr": "void",
                  "kind": "keyword",
                  "value": "void"
                },
                "hasBody": true
              }
            }
          ]
        }
      ],
      "removed": [
        {
          "name": "foo",
          "declarations": [
            {
              "location": {
                "filename": "file:///mod.ts",
                "line": 0,
                "col": 0,
                "byteIndex": 0
              },
              "declarationKind": "export",
              "kind": "function",
              "def": {
                "params": [
                  {
                    "kind": "identifier",
                    "name": "a",
                    "optional": false,
                    "tsType": {
                      "repr": "string",
                      "kind": "keyword",
                      "value": "string"
                    }
                  }
                ],
                "returnType": {
                  "repr": "void",
                  "kind": "keyword",
                  "value": "void"
                },
                "hasBody": true
              }
            }
          ]
        }
      ]
    }
  }
}
