# mod.ts
class Foo {}
const obj = { Foo }
    
export class Bar extends obj.Foo {}

# diagnostics
error[private-type-ref]: public type 'Bar' references private type 'obj'
 --> /mod.ts:4:1
  | 
4 | export class Bar extends obj.Foo {}
  | ^
  = hint: make the referenced type public or remove the reference
  | 
2 | const obj = { Foo }
  |       - this is the referenced type
  | 

  info: to ensure documentation is complete all types that are exposed in the public API must be public


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:4:1
  | 
4 | export class Bar extends obj.Foo {}
  | ^

# output.txt
Defined in file:///mod.ts:2:7

private const obj: { Foo; }

Defined in file:///mod.ts:4:1

class Bar extends obj.Foo



# output.json
[
  {
    "name": "Bar",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 4,
      "col": 0,
      "byteIndex": 38
    },
    "declarationKind": "export",
    "kind": "class",
    "classDef": {
      "isAbstract": false,
      "constructors": [],
      "properties": [],
      "indexSignatures": [],
      "methods": [],
      "extends": "obj.Foo",
      "implements": [],
      "typeParams": [],
      "superTypeParams": []
    }
  },
  {
    "name": "obj",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 2,
      "col": 6,
      "byteIndex": 19
    },
    "declarationKind": "private",
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "",
        "kind": "typeLiteral",
        "typeLiteral": {
          "constructors": [],
          "methods": [],
          "properties": [
            {
              "name": "Foo",
              "location": {
                "filename": "file:///mod.ts",
                "line": 2,
                "col": 14,
                "byteIndex": 27
              },
              "params": [],
              "computed": false,
              "optional": false,
              "tsType": null,
              "typeParams": []
            }
          ],
          "callSignatures": [],
          "indexSignatures": []
        }
      },
      "kind": "const"
    }
  }
]
