# 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:1:1

function foo(bar: any): asserts bar


# output.json
[
  {
    "name": "foo",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 1,
      "col": 0,
      "byteIndex": 0
    },
    "declarationKind": "export",
    "kind": "function",
    "functionDef": {
      "params": [
        {
          "kind": "identifier",
          "name": "bar",
          "optional": false,
          "tsType": {
            "repr": "any",
            "kind": "keyword",
            "keyword": "any"
          }
        }
      ],
      "returnType": {
        "repr": "asserts bar",
        "kind": "typePredicate",
        "typePredicate": {
          "asserts": true,
          "param": {
            "type": "identifier",
            "name": "bar"
          },
          "type": null
        }
      },
      "hasBody": true,
      "isAsync": false,
      "isGenerator": false,
      "typeParams": []
    }
  }
]
