How to fix Duplicate identifier 'X' in TypeScript | DevErrors