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'.
なぜこれが失敗するのかを理解するのを手伝ってくれる人はいますか?
ありがとう