joaompneves / tsviz

Typescript UML Visualizer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow PopertyDeclarations

pitjow opened this issue · comments

In ts-analyser.ts only GetAccessor and SetAccessor are selected in the case switcher of the analyseNode function. Additionally general PropertyDeclaration should be allowed, otherwiese normal "fields" will never appear in the uml. I used this:

case ts.SyntaxKind.PropertyDeclaration:
case ts.SyntaxKind.GetAccessor:
case ts.SyntaxKind.SetAccessor:

It's now supported, check latest version.