# mod.ts
import { MyNamespace, YesDiagnostic2 } from "./diagnostic.ts";

export class MyClass extends YesDiagnostic2 {
  prop: MyNamespace.YesDiagnostic;
  other: Uint8Array;
}

# diagnostic.ts
class NoDiagnostic {}

export namespace MyNamespace {
  export class YesDiagnostic {}
}

export class YesDiagnostic2 {}

# diagnostics
error[private-type-ref]: public type 'MyClass' references private type 'YesDiagnostic2'
 --> /mod.ts:3:1
  | 
3 | export class MyClass extends YesDiagnostic2 {
  | ^
  = hint: make the referenced type public or remove the reference
  | 
7 | export class YesDiagnostic2 {}
  | - this is the referenced type
  | 

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


error[private-type-ref]: public type 'MyClass.prototype.prop' references private type 'MyNamespace'
 --> /mod.ts:4:3
  | 
4 |   prop: MyNamespace.YesDiagnostic;
  |   ^
  = hint: make the referenced type public or remove the reference
  | 
3 | export namespace MyNamespace {
  | - this is the referenced type
  | 

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


error[private-type-ref]: public type 'MyClass.prototype.prop' references private type 'MyNamespace.YesDiagnostic'
 --> /mod.ts:4:3
  | 
4 |   prop: MyNamespace.YesDiagnostic;
  |   ^
  = hint: make the referenced type public or remove the reference
  | 
4 |   export class YesDiagnostic {}
  |   - 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:3:1
  | 
3 | export class MyClass extends YesDiagnostic2 {
  | ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:4:3
  | 
4 |   prop: MyNamespace.YesDiagnostic;
  |   ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:5:3
  | 
5 |   other: Uint8Array;
  |   ^

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

class MyClass extends YesDiagnostic2

  prop: MyNamespace.YesDiagnostic
  other: Uint8Array


# output.json
{
  "imports": [
    {
      "importedName": "MyNamespace",
      "originalName": "MyNamespace",
      "src": "file:///diagnostic.ts"
    },
    {
      "importedName": "YesDiagnostic2",
      "originalName": "YesDiagnostic2",
      "src": "file:///diagnostic.ts"
    }
  ],
  "symbols": [
    {
      "name": "MyClass",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 2,
            "col": 0,
            "byteIndex": 64
          },
          "declarationKind": "export",
          "kind": "class",
          "def": {
            "properties": [
              {
                "tsType": {
                  "repr": "MyNamespace.YesDiagnostic",
                  "kind": "typeRef",
                  "value": {
                    "typeName": "MyNamespace.YesDiagnostic",
                    "resolution": {
                      "kind": "import",
                      "specifier": "./diagnostic.ts",
                      "name": "MyNamespace"
                    }
                  }
                },
                "name": "prop",
                "location": {
                  "filename": "file:///mod.ts",
                  "line": 3,
                  "col": 2,
                  "byteIndex": 112
                }
              },
              {
                "tsType": {
                  "repr": "Uint8Array",
                  "kind": "typeRef",
                  "value": {
                    "typeName": "Uint8Array"
                  }
                },
                "name": "other",
                "location": {
                  "filename": "file:///mod.ts",
                  "line": 4,
                  "col": 2,
                  "byteIndex": 147
                }
              }
            ],
            "extends": "YesDiagnostic2"
          }
        }
      ]
    }
  ]
}
