unrecognized properties on this 'this' in mongoose virtuals with typegoose

后端 未结 0 595
时光说笑
时光说笑 2020-12-13 23:56

I\'m trying to define a virtual property on a typegoose model.

class foo {
  ...
  start: Date
  end: Date
  get duration(){
    return this.end - this.start
         


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