buehler/node-typescript-parser

Parser returns "undefined" for complex types of fields

Closed this issue · 1 comments

When parsing Typescript-Files, nearly every information is returned, which is really great - thank you for the great job you've done! Unfortuantely, on processing the PropertyDeclarations, the type thereof is "undefined" in case of complex types (i.e., if a property has a type of another Typescript class for example).

Is there a possiblity that in such a case the name of the class is returned instead of "undefined" or accessed in any other way?

Thank you very much in advance!

Sorry - this was my fault - I parsed an example, where the type information has not been declared -> the parser works as expected!