我有一个运行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'.
任何人都可以帮我看看为什么会失败吗?
由于