title: error TS2345: Argument of type '{ read: typeof ElementRef; }' is not assignable to parameter of type '{ read?: any; static: boolean; }'
body: <p>So I'm upgrading my Angular app from 7 to 8, when I run <code>ng serve</code>, I get this following error:</p>
  <pre><code>error TS2739: Type '{}' is missing the following properties from type 'EmployeeModel': statut, hasLaws, disablePlanningManagerOrLeaderOrFixe
  
  303         this.employee = {...this.employee, ...entry[1]};
  </code></pre>
  <p>In my Typescript file:</p>
  <pre><code>getEmployeeDetail() {
      this.setIdSecuriteSocialAndIdBanqueToEmployeeBefore();
      Object.entries(this.infosPersonnellesForm.value).forEach(entry =&gt; {
        if (entry[0] === 'coordonnees' || entry[0] === 'divers') {
          this.employee = {...this.employee, ...entry[1]};
        } else {
          this.employee[entry[0]] = entry[1];
        }
      });
      this.setIdSecuriteSocialAndIdBanqueToEmployeeAfter();
  
    }
  </code></pre>
  <p>Anyone knows how to solve this issue ? Thank you</p>