Property generic types
Opened this issue · 0 comments
gradzio commented
If I have a class with a property, then I would like to get an array of all types with generic.
Example:
class A {
private test: GenericType<AnotherType>>;
}
I would like to be able to call:
classDeclration.getProperties()[0].getType().getAllTypes()
and return ['GenericType', 'AnotherType']
- could not find it in documentation and tried many methods from Type interface. In the end I am processing compilerNode for it