# mod.ts
export function foo(bar: any): asserts bar {}

# diagnostics
error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:1:1
  | 
1 | export function foo(bar: any): asserts bar {}
  | ^

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

function foo(bar: any): asserts bar


# output.json
{
  "symbols": [
    {
      "name": "foo",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 0,
            "col": 0,
            "byteIndex": 0
          },
          "declarationKind": "export",
          "kind": "function",
          "def": {
            "params": [
              {
                "kind": "identifier",
                "name": "bar",
                "optional": false,
                "tsType": {
                  "repr": "any",
                  "kind": "keyword",
                  "value": "any"
                }
              }
            ],
            "returnType": {
              "repr": "asserts bar",
              "kind": "typePredicate",
              "value": {
                "asserts": true,
                "param": {
                  "type": "identifier",
                  "name": "bar"
                }
              }
            },
            "hasBody": true
          }
        }
      ]
    }
  ]
}
