title: jsPDF error after updating Angular project to 10
body: <p>I updated Angular project and now i get this error:</p>
  <pre><code>Argument of type '82' is not assignable to parameter of type 'string | string[]'.ts(2345)
  </code></pre>
  <p>It is where is comment on //HEADER TEXT  and doc.text() the first numbers, i think it wants string as first parameter but i have number from previous version ?
  I had it like this before and it was working.. how can i fix this?</p>
  <p>First i renamed input because it was throwing error that its not constructable from this import * as jsPDF from 'jspdf';</p>
  <p>I renamed it to import jsPDF from 'jspdf';</p>
  <p>Then this error was fixed, and now the string error appears.</p>
  <p>Here is code:</p>
  <pre><code> onPdf(){
      let doc = new jsPDF('p', 'mm', 'a4');
      let itmH: number = 18;                            //height of rectangles
      let headerH: number = 14;                         //height of header
      let offH: number = 2                              //offset of rectangles
      let offsetX:number = 10;
      let offsetY:number = 10;
      let maxWidth:number = 210 - 2*offsetX;
      let pageNumber:number = 1;
      doc.addPage();
      doc.addPage();
      
      // HEADER - rectangle + lines
      doc.setPage(1);
      doc.rect(offsetX,offsetY,maxWidth,headerH);
      doc.line(55,10,55,24); 
      doc.line(145,10,145,24);
      doc.line(55,17,145,17);
  
      // HEADER TEXT
      doc.setFontSize(12);
      doc.text(82,15.5,'Bericht ' + this.oeeDb.branch);
      doc.text(68,22.5, this.oeeDb.datum + ' Tagesreport ' + this.produkt);
      doc.text(160,19, 'BE.11402.ADM');
  
      //RIADKOVANIE
      let stp:number = itmH + offH;
      let curP:number = offsetY + headerH + offH;
      let greenX:number = 55
      
      for (let i =0;i &lt; this.dbItems.length;i++){
        // RECTANGLES
        doc.rect(offsetX,curP,maxWidth,itmH);
        doc.setFillColor(0, 66, 54);
        doc.rect(greenX, curP, 8, itmH, 'F');
        
        // DESCRIPTION
        doc.setFontSize(10);
        let desc = this.dbItems[i].description;
        if (desc.length &lt; 26){
          let xAx = offsetX + 2 + Math.round((25-desc.length)*41/50);
          doc.text(desc,xAx,curP+11);
        } else {
          let ind: number = 0;
          let arrStr = desc.split(/[ ,]+/).filter(Boolean);
          let strToTxt = '';
          for (let k = 0; k &lt; arrStr.length;k++){
            if (k &gt; 0){
              if (strToTxt.length + arrStr[k].length &gt; 24){
                let xAx = offsetX + 2 + Math.round((25-strToTxt.length)*41/50);
                doc.text(strToTxt,xAx,curP+8+(ind*5));
                ind++;
                strToTxt = arrStr[k];
              } else {
                strToTxt += ' ' + arrStr[k];
              }
            } else {
              strToTxt = arrStr[k];
            }
            if (k === arrStr.length - 1 &amp;&amp; strToTxt.length&gt;0){
              let xAx = offsetX + 2 + Math.round((25-strToTxt.length)*41/50);
              doc.text(strToTxt,xAx,curP+8+(ind*5));
              strToTxt = '';
            }
          }
        };
        
        // print RESULT
        let rslt = this.getResult(i);
        let xAx = greenX + 2 + 8 + Math.round((32-rslt.length)*60/64);
        doc.text(rslt,xAx,curP+12);
  
        let result:string;
        if ( i === 0){
          if(this.oeeDb.results[i] &gt; this.dbItems[i].criteria[0]) {
            result = 'red';
          } else {
            result = 'green';
          }
        } else {
          if (this.dbItems[i].type === 'low'){
            if (this.oeeDb.results[i] &gt; this.dbItems[i].criteria[0]){
              result = 'red';
            } else if (this.oeeDb.results[i] &gt; this.dbItems[i].criteria[1]){
              result = 'yellow';
            } else {
              result = 'green';
            }
          } else {
            if (this.oeeDb.results[i] &lt; this.dbItems[i].criteria[0]){
              result = 'red';
            } else if (this.oeeDb.results[i] &lt; this.dbItems[i].criteria[1]){
              result = 'yellow';
            } else {
              result = 'green';
            }
          }
        }
        
        
        //trafficlights
        for (let j =0 ;j &lt; 3; j++){
          if (result === 'red' &amp;&amp; (j === 0 || i === 0)){
            doc.setFillColor(255, 0, 0);
          } else if (result === 'yellow' &amp;&amp; j === 1) {
            doc.setFillColor(255,255,0);
          } else if (result === 'green' &amp;&amp; (j === 2 || i === 0)){
            doc.setFillColor(0,128,0);
          } else {
            doc.setFillColor(0, 0, 0);
          }
          doc.circle(greenX+4,curP+ (j*6)+3, 2.5, 'F')
  
          // LEGEND
          if (j === 0) {
            doc.setFillColor(255,0,0);
          } else if (j===1) {
            doc.setFillColor(255,255,0);
          } else {
            doc.setFillColor(0,128,0);
          }
          if (i &gt; 0){
            doc.circle(125,curP+ (j*5)+4, 2, 'FD');
          }
          
          if (j==0 || i &gt; 0) {
            doc.setFontSize(10);
            doc.text(128,curP+ (j*5)+5, this.dbItems[i].legend[j]);
          }
  </code></pre>
  <p>Should i just replace it from this :</p>
  <pre><code>doc.text(82, 15.5, 'Bericht ' + this.oeeDb.branch);
  doc.text(68, 22.5, this.oeeDb.datum + ' Tagesreport ' + this.produkt);
  doc.text(160, 19, 'BE.11402.ADM');
  </code></pre>
  <p>To this in all cases? :</p>
  <pre><code>doc.text('Bericht ' + this.oeeDb.branch, 82, 15.5);
  doc.text(this.oeeDb.datum + ' Tagesreport ' + this.produkt, 68, 22.5);
  doc.text('BE.11402.ADM', 160, 19);
  </code></pre>