[[インターフェース (TypeScript)|interface]]で同名の[[プロパティ (TypeScript)|プロパティ]]を[[extends (JavaScript)|extends]]した場合はエラーになる。 ```ts interface Animal { id: string; } // Interface 'Merged' incorrectly extends interface 'Animal'. // Types of property 'id' are incompatible. // Type 'number' is not assignable to type 'string'. [2430] interface Merged extends Animal { id: number; } ``` ## MOC - 📒**関連** - [[交差型はプロパティの衝突を検知できない (TypeScript)|交差型はプロパティの衝突を検知できない]] - 📜**アクティビティ** - 📝**トラブルシューティング**