How to fix Parameter of a class property initializer cannot reference an identifier declared in the class in TypeScript | DevErrors