# mod.ts
export const a = [1];
      export const b = [true];
      export const c = ["c"];
      export const d = [2, "d"];
      export const e = [1, 2, 3];
      export const f = ["a", 1, e];
      export const g = ["a", 1, true] as const;

# diagnostics
error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:1:14
  | 
1 | export const a = [1];
  |              ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:2:20
  | 
2 |       export const b = [true];
  |                    ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:3:20
  | 
3 |       export const c = ["c"];
  |                    ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:4:20
  | 
4 |       export const d = [2, "d"];
  |                    ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:5:20
  | 
5 |       export const e = [1, 2, 3];
  |                    ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:6:20
  | 
6 |       export const f = ["a", 1, e];
  |                    ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:7:20
  | 
7 |       export const g = ["a", 1, true] as const;
  |                    ^

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

const a: number[]

Defined in file:///mod.ts:2:20

const b: boolean[]

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

const c: string[]

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

const d: (number | string)[]

Defined in file:///mod.ts:5:20

const e: number[]

Defined in file:///mod.ts:6:20

const f: any[]

Defined in file:///mod.ts:7:20

const g: ("a" | 1 | true)[]


# output.json
[
  {
    "name": "a",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 1,
      "col": 13,
      "byteIndex": 13
    },
    "declarationKind": "export",
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "",
        "kind": "array",
        "array": {
          "repr": "number",
          "kind": "keyword",
          "keyword": "number"
        }
      },
      "kind": "const"
    }
  },
  {
    "name": "b",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 2,
      "col": 19,
      "byteIndex": 41
    },
    "declarationKind": "export",
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "",
        "kind": "array",
        "array": {
          "repr": "boolean",
          "kind": "keyword",
          "keyword": "boolean"
        }
      },
      "kind": "const"
    }
  },
  {
    "name": "c",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 3,
      "col": 19,
      "byteIndex": 72
    },
    "declarationKind": "export",
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "",
        "kind": "array",
        "array": {
          "repr": "string",
          "kind": "keyword",
          "keyword": "string"
        }
      },
      "kind": "const"
    }
  },
  {
    "name": "d",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 4,
      "col": 19,
      "byteIndex": 102
    },
    "declarationKind": "export",
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "",
        "kind": "array",
        "array": {
          "repr": "",
          "kind": "union",
          "union": [
            {
              "repr": "number",
              "kind": "keyword",
              "keyword": "number"
            },
            {
              "repr": "string",
              "kind": "keyword",
              "keyword": "string"
            }
          ]
        }
      },
      "kind": "const"
    }
  },
  {
    "name": "e",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 5,
      "col": 19,
      "byteIndex": 135
    },
    "declarationKind": "export",
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "",
        "kind": "array",
        "array": {
          "repr": "number",
          "kind": "keyword",
          "keyword": "number"
        }
      },
      "kind": "const"
    }
  },
  {
    "name": "f",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 6,
      "col": 19,
      "byteIndex": 169
    },
    "declarationKind": "export",
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "any[]",
        "kind": "array",
        "array": {
          "repr": "any",
          "kind": "keyword",
          "keyword": "any"
        }
      },
      "kind": "const"
    }
  },
  {
    "name": "g",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 7,
      "col": 19,
      "byteIndex": 205
    },
    "declarationKind": "export",
    "kind": "variable",
    "variableDef": {
      "tsType": {
        "repr": "",
        "kind": "array",
        "array": {
          "repr": "",
          "kind": "union",
          "union": [
            {
              "repr": "a",
              "kind": "literal",
              "literal": {
                "kind": "string",
                "string": "a"
              }
            },
            {
              "repr": "1",
              "kind": "literal",
              "literal": {
                "kind": "number",
                "number": 1.0
              }
            },
            {
              "repr": "true",
              "kind": "literal",
              "literal": {
                "kind": "boolean",
                "boolean": true
              }
            }
          ]
        }
      },
      "kind": "const"
    }
  }
]
