How to create Mixin extend in JS and extend decorators from parent class?

前端 未结 0 1764
死守一世寂寞
死守一世寂寞 2020-12-21 08:04

I have many classes decorated with decorators. For example:

class Test {
    @IsNumber()
    gal1 = 1
}

class Test2 {
    @IsNumber()
    gal2 = 1
}
class Te         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题