# mod.ts
export type A = {
  new (d: string): A;
  a(): void;
  b?(): void;
  get c(): string;
  set c(v: number);
};

# diagnostics
error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:1:1
  | 
1 | export type A = {
  | ^

# output.txt
Defined in file:///mod.ts:0:1

type A = { a(): void; b?(): void; c(): string; c(v: number); }


# output.json
{
  "symbols": [
    {
      "name": "A",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 0,
            "col": 0,
            "byteIndex": 0
          },
          "declarationKind": "export",
          "kind": "typeAlias",
          "def": {
            "tsType": {
              "kind": "typeLiteral",
              "value": {
                "constructors": [
                  {
                    "params": [
                      {
                        "kind": "identifier",
                        "name": "d",
                        "optional": false,
                        "tsType": {
                          "repr": "string",
                          "kind": "keyword",
                          "value": "string"
                        }
                      }
                    ],
                    "returnType": {
                      "repr": "A",
                      "kind": "typeRef",
                      "value": {
                        "typeName": "A",
                        "resolution": {
                          "kind": "local"
                        }
                      }
                    },
                    "location": {
                      "filename": "file:///mod.ts",
                      "line": 1,
                      "col": 2,
                      "byteIndex": 20
                    }
                  }
                ],
                "methods": [
                  {
                    "name": "a",
                    "kind": "method",
                    "location": {
                      "filename": "file:///mod.ts",
                      "line": 2,
                      "col": 2,
                      "byteIndex": 42
                    },
                    "params": [],
                    "returnType": {
                      "repr": "void",
                      "kind": "keyword",
                      "value": "void"
                    }
                  },
                  {
                    "name": "b",
                    "kind": "method",
                    "location": {
                      "filename": "file:///mod.ts",
                      "line": 3,
                      "col": 2,
                      "byteIndex": 55
                    },
                    "params": [],
                    "optional": true,
                    "returnType": {
                      "repr": "void",
                      "kind": "keyword",
                      "value": "void"
                    }
                  },
                  {
                    "name": "c",
                    "kind": "getter",
                    "location": {
                      "filename": "file:///mod.ts",
                      "line": 4,
                      "col": 2,
                      "byteIndex": 69
                    },
                    "params": [],
                    "returnType": {
                      "repr": "string",
                      "kind": "keyword",
                      "value": "string"
                    }
                  },
                  {
                    "name": "c",
                    "kind": "setter",
                    "location": {
                      "filename": "file:///mod.ts",
                      "line": 5,
                      "col": 2,
                      "byteIndex": 88
                    },
                    "params": [
                      {
                        "kind": "identifier",
                        "name": "v",
                        "optional": false,
                        "tsType": {
                          "repr": "number",
                          "kind": "keyword",
                          "value": "number"
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        }
      ]
    }
  ]
}
