Is it possible to get the parent class of a TypeScript class at runtime? I mean, for example, within a decorator:
export function CustomDecorator(data: any) {
return function (target: Function) {
var parentTarget = ?
}
}
My custom decorator is applied this way:
export class AbstractClass {
(...)
}
@CustomDecorator({
(...)
})
export class SubClass extends AbstractClass {
(...)
}
Within the decorator, I would like to have an instance to AbstractClass
.
Thanks very much for your help!