How to fix Duplicate constructor definition in TypeScript | DevErrors