# mod.ts
/** Testing */
export function test() {
}

/** doc1 */
test.skip = (param: string): void => {
};

/** doc2 */
test.textProp = "asdf";

/** doc3 */
test.booleanProp = true;

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

function test(): void
  Testing

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

namespace test
  Additional properties on the `test` function.

  const skip: (param: string) => void
    doc1
  const textProp: "asdf"
    doc2
  const booleanProp: true
    doc3


# output.json
[
  {
    "name": "test",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 2,
      "col": 0,
      "byteIndex": 15
    },
    "declarationKind": "export",
    "jsDoc": {
      "doc": "Testing"
    },
    "kind": "function",
    "functionDef": {
      "params": [],
      "returnType": {
        "repr": "void",
        "kind": "keyword",
        "keyword": "void"
      },
      "hasBody": true,
      "isAsync": false,
      "isGenerator": false,
      "typeParams": []
    }
  },
  {
    "name": "test",
    "isDefault": false,
    "location": {
      "filename": "file:///mod.ts",
      "line": 6,
      "col": 5,
      "byteIndex": 60
    },
    "declarationKind": "export",
    "jsDoc": {
      "doc": "Additional properties on the `test` function."
    },
    "kind": "namespace",
    "namespaceDef": {
      "elements": [
        {
          "name": "skip",
          "isDefault": false,
          "location": {
            "filename": "file:///mod.ts",
            "line": 6,
            "col": 5,
            "byteIndex": 60
          },
          "declarationKind": "declare",
          "jsDoc": {
            "doc": "doc1"
          },
          "kind": "variable",
          "variableDef": {
            "tsType": {
              "repr": "",
              "kind": "fnOrConstructor",
              "fnOrConstructor": {
                "constructor": false,
                "tsType": {
                  "repr": "void",
                  "kind": "keyword",
                  "keyword": "void"
                },
                "params": [
                  {
                    "kind": "identifier",
                    "name": "param",
                    "optional": false,
                    "tsType": {
                      "repr": "string",
                      "kind": "keyword",
                      "keyword": "string"
                    }
                  }
                ],
                "typeParams": []
              }
            },
            "kind": "const"
          }
        },
        {
          "name": "textProp",
          "isDefault": false,
          "location": {
            "filename": "file:///mod.ts",
            "line": 10,
            "col": 5,
            "byteIndex": 115
          },
          "declarationKind": "declare",
          "jsDoc": {
            "doc": "doc2"
          },
          "kind": "variable",
          "variableDef": {
            "tsType": {
              "repr": "asdf",
              "kind": "literal",
              "literal": {
                "kind": "string",
                "string": "asdf"
              }
            },
            "kind": "const"
          }
        },
        {
          "name": "booleanProp",
          "isDefault": false,
          "location": {
            "filename": "file:///mod.ts",
            "line": 13,
            "col": 5,
            "byteIndex": 152
          },
          "declarationKind": "declare",
          "jsDoc": {
            "doc": "doc3"
          },
          "kind": "variable",
          "variableDef": {
            "tsType": {
              "repr": "true",
              "kind": "literal",
              "literal": {
                "kind": "boolean",
                "boolean": true
              }
            },
            "kind": "const"
          }
        }
      ]
    }
  }
]
