const Ageman = (constructor: Function) => { constructor.prototype.age = 43; } @Ageman class Man { age!: number; } const man = new Man(); console.log(man.age);