code-block-writer
code-block-writer copied to clipboard
Property generic types
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