How to fix A parameter property cannot be declared using a binding pattern in TypeScript | DevErrors