How to fix Property modifier cannot appear on a constructor declaration in TypeScript | DevErrors