deno_doc 0.198.0

doc generation for deno
Documentation
# old/mod.ts
export class Foo {
  constructor(name: string) {}
}

# new/mod.ts
export class Foo {
  constructor(name: string, age: number) {}
}

# output.json
{
  "modifiedModules": {
    "file:///mod.ts": {
      "modified": [
        {
          "name": "Foo",
          "declarations": {
            "modified": [
              {
                "kind": "class",
                "defChanges": {
                  "type": "class",
                  "constructorChanges": {
                    "added": [
                      {
                        "hasBody": true,
                        "name": "constructor",
                        "params": [
                          {
                            "kind": "identifier",
                            "name": "name",
                            "optional": false,
                            "tsType": {
                              "repr": "string",
                              "kind": "keyword",
                              "value": "string"
                            }
                          },
                          {
                            "kind": "identifier",
                            "name": "age",
                            "optional": false,
                            "tsType": {
                              "repr": "number",
                              "kind": "keyword",
                              "value": "number"
                            }
                          }
                        ],
                        "location": {
                          "filename": "file:///mod.ts",
                          "line": 1,
                          "col": 2,
                          "byteIndex": 21
                        }
                      }
                    ],
                    "removed": [
                      {
                        "hasBody": true,
                        "name": "constructor",
                        "params": [
                          {
                            "kind": "identifier",
                            "name": "name",
                            "optional": false,
                            "tsType": {
                              "repr": "string",
                              "kind": "keyword",
                              "value": "string"
                            }
                          }
                        ],
                        "location": {
                          "filename": "file:///mod.ts",
                          "line": 1,
                          "col": 2,
                          "byteIndex": 21
                        }
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      ]
    }
  }
}