How to fix Default type of constructor property must be assignable to its declared type in TypeScript | DevErrors