Why TS not allow pass options on Mongoose Schema constructor?

前端 未结 0 1823
感情败类
感情败类 2020-12-02 00:19

all my applications broken :(

My TS warning me that my Mongoose Schemas can only have 0 or 1 arguments, but all my applications I pass the options in the constructor

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