-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
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]
bradenhs
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created