How do i declare a dynamic key in an object for a Mongoose Schema

后端 未结 0 1362
耶瑟儿~
耶瑟儿~ 2021-02-18 23:21

I have a structure like this

alerts: {
[symbol: string]: [
    {
     alert_price: number,
     price_when_set: number,
    }
  ]
},

how do i dec

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