code-block-writer icon indicating copy to clipboard operation
code-block-writer copied to clipboard

Property generic types

Open gradzio opened this issue 4 years ago • 0 comments

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

gradzio avatar Dec 26 '21 09:12 gradzio