How to fix Parameter must have a unique name in TypeScript | DevErrors