输入' MongooseDocument'没有与“猫鼬”类型相同的属性

时间:2017-07-21 08:47:08

标签: node.js typescript mongoose typescript-typings

我在koa2项目中使用typescript。节点环境是8.我安装了dt~mongoose.But当我运行项目时,它输出错误:

typings/globals/mongoose/index.d.ts(841,9): error TS2559: Type 'MongooseDocument' has no properties in common with type 'MongooseDocumentOptionals'

0 个答案:

没有答案