# mod.ts
// Should not show a diagnostic for MyNamespace because MyInternal was marked as internal
/** Comment */
export type PrivateProp = typeof MyNamespace.MyInternal;

namespace MyNamespace {
  /** @internal */
  export class MyInternal {
  }
}

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

type PrivateProp = typeof MyNamespace.MyInternal
  Comment

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

private namespace MyNamespace

  class MyInternal

    @internal


# output.json
{
  "symbols": [
    {
      "name": "PrivateProp",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 2,
            "col": 0,
            "byteIndex": 105
          },
          "declarationKind": "export",
          "jsDoc": {
            "doc": "Comment"
          },
          "kind": "typeAlias",
          "def": {
            "tsType": {
              "repr": "MyNamespace.MyInternal",
              "kind": "typeQuery",
              "value": "MyNamespace.MyInternal"
            }
          }
        }
      ]
    },
    {
      "name": "MyNamespace",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 4,
            "col": 0,
            "byteIndex": 163
          },
          "declarationKind": "private",
          "kind": "namespace",
          "def": {
            "elements": [
              {
                "name": "MyInternal",
                "declarations": [
                  {
                    "location": {
                      "filename": "file:///mod.ts",
                      "line": 6,
                      "col": 2,
                      "byteIndex": 208
                    },
                    "declarationKind": "export",
                    "jsDoc": {
                      "tags": [
                        {
                          "kind": "internal"
                        }
                      ]
                    },
                    "kind": "class",
                    "def": {}
                  }
                ]
              }
            ]
          }
        }
      ]
    }
  ]
}
