Add an experiment reading out a JSDoc comment

This commit is contained in:
Jos de Jong 2023-08-18 17:39:57 +02:00
parent 16eb09fe61
commit 3653077c95
7 changed files with 148 additions and 71 deletions

View file

@ -27,7 +27,7 @@ export function infer(sourceFile: ts.SourceFile) {
// z => dep.multiply(z, z)
// )
if (node?.['name']?.kind === ts.SyntaxKind.Identifier && node?.['name']['escapedText'] === 'dep') {
console.log('dep', getType(node['type'].kind), node)
// console.log('dep', getType(node['type'].kind), node)
node['type']?.members?.forEach(member => {
console.log('member', {