# mod.ts
const c = { a: "a", b: 2 };
const d: { f: string; g: number; } = { f: "f", g: 2 };

export const {
  /** export a doc */
  a,
  /** export b doc */
  b,
}: {
  /** type alias doc */
  a: string;
  /** other doc */
  b: number;
} = c;

export const { f, g: h } = d;

# diagnostics
error[missing-jsdoc]: exported symbol is missing JSDoc documentation
  --> /mod.ts:16:16
   | 
16 | export const { f, g: h } = d;
   |                ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
  --> /mod.ts:16:22
   | 
16 | export const { f, g: h } = d;
   |                      ^

# output.txt
Defined in file:///mod.ts:6:3

const a: string
  export a doc

Defined in file:///mod.ts:8:3

const b: number
  export b doc

Defined in file:///mod.ts:16:16

const f: string

Defined in file:///mod.ts:16:22

const h: number


# output.json
[
  {
    "name": "a",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 6,
      "col": 2,
      "byteIndex": 123
    },
    "declarationKind": "export",
    "jsDoc": {
      "doc": "export a doc"
    },
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "string",
        "kind": "keyword",
        "keyword": "string"
      },
      "kind": "const"
    }
  },
  {
    "name": "b",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 8,
      "col": 2,
      "byteIndex": 150
    },
    "declarationKind": "export",
    "jsDoc": {
      "doc": "export b doc"
    },
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "number",
        "kind": "keyword",
        "keyword": "number"
      },
      "kind": "const"
    }
  },
  {
    "name": "f",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 16,
      "col": 15,
      "byteIndex": 250
    },
    "declarationKind": "export",
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "string",
        "kind": "keyword",
        "keyword": "string"
      },
      "kind": "const"
    }
  },
  {
    "name": "h",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 16,
      "col": 21,
      "byteIndex": 256
    },
    "declarationKind": "export",
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "number",
        "kind": "keyword",
        "keyword": "number"
      },
      "kind": "const"
    }
  }
]
