# mod.ts
/**
 * Interface js doc
 */
export default interface Reader {
    /** Read n bytes */
    read?(buf: Uint8Array, something: unknown): Promise<number>
}
# output.txt
Defined in file:///mod.ts:4:1

interface default
  Interface js doc

  read?(buf: Uint8Array, something: unknown): Promise<number>
    Read n bytes


# output.json
[
  {
    "name": "default",
    "isDefault": true,
    "location": {
      "filename": "file:///mod.ts",
      "line": 4,
      "col": 0,
      "byteIndex": 28
    },
    "declarationKind": "export",
    "jsDoc": {
      "doc": "Interface js doc"
    },
    "kind": "interface",
    "interfaceDef": {
      "defName": "Reader",
      "extends": [],
      "constructors": [],
      "methods": [
        {
          "name": "read",
          "jsDoc": {
            "doc": "Read n bytes"
          },
          "kind": "method",
          "location": {
            "filename": "file:///mod.ts",
            "line": 6,
            "col": 4,
            "byteIndex": 90
          },
          "params": [
            {
              "kind": "identifier",
              "name": "buf",
              "optional": false,
              "tsType": {
                "repr": "Uint8Array",
                "kind": "typeRef",
                "typeRef": {
                  "typeParams": null,
                  "typeName": "Uint8Array"
                }
              }
            },
            {
              "kind": "identifier",
              "name": "something",
              "optional": false,
              "tsType": {
                "repr": "unknown",
                "kind": "keyword",
                "keyword": "unknown"
              }
            }
          ],
          "optional": true,
          "returnType": {
            "repr": "Promise",
            "kind": "typeRef",
            "typeRef": {
              "typeParams": [
                {
                  "repr": "number",
                  "kind": "keyword",
                  "keyword": "number"
                }
              ],
              "typeName": "Promise"
            }
          },
          "typeParams": []
        }
      ],
      "properties": [],
      "callSignatures": [],
      "indexSignatures": [],
      "typeParams": []
    }
  }
]
