Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private getJsDocs(node: ts.Node, sourceFile: ts.SourceFile) {
const jsDocs = utilGetJsDocs(node)
const result: JsDoc[] = []
for (const jsDoc of jsDocs) {
result.push({
...jsDoc,
type: jsDoc.type ? this.getType(jsDoc.type, sourceFile) : undefined
})
}
return result
}