How to fix Mapped type property must be computed using 'in' syntax in TypeScript | DevErrors