# a.ts
const test1: string = "";
const test2: number = 3, test3: number = 3;
const test4: number;
const test5: number;

export { test1, test2, test3 };
export { test4, test5 };

# b.ts
export class Test {}

# c.ts
export * from "./a.ts";
export { Test } from "./b.ts";

# mod.ts
export { Test, test1 } from "./c.ts";

# diagnostics
error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /b.ts:1:1
  | 
1 | export class Test {}
  | ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /a.ts:1:7
  | 
1 | const test1: string = "";
  |       ^

# output.txt
Defined in file:///a.ts:0:7

const test1: string

Defined in file:///b.ts:0:1

class Test



# output.json
{
  "symbols": [
    {
      "name": "Test",
      "declarations": [
        {
          "location": {
            "filename": "file:///b.ts",
            "line": 0,
            "col": 0,
            "byteIndex": 0
          },
          "declarationKind": "export",
          "kind": "class",
          "def": {}
        }
      ]
    },
    {
      "name": "test1",
      "declarations": [
        {
          "location": {
            "filename": "file:///a.ts",
            "line": 0,
            "col": 6,
            "byteIndex": 6
          },
          "declarationKind": "export",
          "kind": "variable",
          "def": {
            "tsType": {
              "repr": "string",
              "kind": "keyword",
              "value": "string"
            },
            "kind": "const"
          }
        }
      ]
    }
  ]
}
