0

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

当我尝试编译我的打字稿时: ./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'.

谁能帮我看看为什么会失败?

谢谢

4

0 回答 0