编译时获取与node-config相关的typescript错误

时间:2017-10-10 09:07:15

标签: node-config

我有一个运行Typescript的expressjs项目,也使用node-config包。

当我尝试编写我的打字稿时: ./node_modules/.bin/tsc --project ./server/tsconfig.json

我收到以下类型错误:

server/index.ts(15,33): error TS2345: Argument of type '{ name: {}; dialect: string; host: {}; port: {}; username: {}; password: {}; validateOnly: false; }' is not assignable to parameter of type 'ISequelizeConfig | ISequelizeValidationOnlyConfig'. Type '{ name: {}; dialect: string; host: {}; port: {}; username: {}; password: {}; validateOnly: false; }' is not assignable to type 'ISequelizeConfig'. Types of property 'name' are incompatible. Type '{}' is not assignable to type 'string'.

任何人都可以帮我看看为什么会失败吗?

由于

0 个答案:

没有答案