Closed
Description
I wonder if there's any plans to support decorators within mixins?
type Constructor<T> = { new (...args: any[]): T }
function Mixin<T extends Constructor<{}>>(Base : T) {
return class extends Base {
constructor(...args: any[]) {
super(...args)
}
@decorator
get y() {
return this.x + 3
}
}
TSC 2.2.1 currently rejects this construction: [Decorators are not valid here]