How to fix Type 'X' is missing the following properties from type 'Y': a, b, c in TypeScript | DevErrors