# mod.ts
export async function* ag() {}
# diagnostics
error[missing-jsdoc]: exported symbol is missing JSDoc documentation
--> /mod.ts:1:1
|
1 | export async function* ag() {}
| ^
error[missing-return-type]: exported function is missing an explicit return type annotation
--> /mod.ts:1:1
|
1 | export async function* ag() {}
| ^
# output.txt
Defined in file:///mod.ts:0:1
async function* ag()
# output.json
{
"symbols": [
{
"name": "ag",
"declarations": [
{
"location": {
"filename": "file:///mod.ts",
"line": 0,
"col": 0,
"byteIndex": 0
},
"declarationKind": "export",
"kind": "function",
"def": {
"params": [],
"hasBody": true,
"isAsync": true,
"isGenerator": true
}
}
]
}
]
}