# old/mod.ts
export function identity(value: unknown): unknown { return value; }

# new/mod.ts
export function identity<T>(value: T): T { return value; }

# output.json
{
  "modifiedModules": {
    "file:///mod.ts": {
      "modified": [
        {
          "name": "identity",
          "declarations": {
            "modified": [
              {
                "kind": "function",
                "defChanges": {
                  "type": "function",
                  "paramsChange": {
                    "modified": [
                      {
                        "index": 0,
                        "typeChange": {
                          "old": {
                            "repr": "unknown",
                            "kind": "keyword",
                            "value": "unknown"
                          },
                          "new": {
                            "repr": "T",
                            "kind": "typeRef",
                            "value": {
                              "typeName": "T",
                              "resolution": {
                                "kind": "typeParam",
                                "declaringName": "identity",
                                "declaringKind": "function"
                              }
                            }
                          }
                        }
                      }
                    ]
                  },
                  "returnTypeChange": {
                    "old": {
                      "repr": "unknown",
                      "kind": "keyword",
                      "value": "unknown"
                    },
                    "new": {
                      "repr": "T",
                      "kind": "typeRef",
                      "value": {
                        "typeName": "T",
                        "resolution": {
                          "kind": "typeParam",
                          "declaringName": "identity",
                          "declaringKind": "function"
                        }
                      }
                    }
                  },
                  "typeParamsChange": {
                    "added": [
                      {
                        "name": "T"
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      ]
    }
  }
}
