title: Export pdf in primeng datatable is not working in Angular 9
body: <p>I tried to implement export as PDF in Primeng datatable in Angular 9. My code is given below:</p>
  <pre><code>exportPdf() {
    this.cols = [
      { field: 'code', header: 'Code' },
      { field: 'name', header: 'Name' },
      { field: 'category', header: 'Category' },
      { field: 'quantity', header: 'Quantity' }
  ];
  
  this.exportColumns = this.cols.map(col =&gt; ({title: col.header, dataKey: col.field})); console.log(this.exportColumns)
  import(&quot;jspdf&quot;).then(jsPDF =&gt; {
    import(&quot;jspdf-autotable&quot;).then(x =&gt; {
        const doc = new jsPDF.default(0,0);
        doc.autoTable(this.exportColumns, this.products);
        doc.save('products.pdf');
        
   })
  })
  }
  </code></pre>
  <p>But I am getting this error:</p>
  <pre><code>error TS2345: Argument of type '0' is not assignable to parameter of type 'string'.
  
      in       const doc = new jsPDF.default(0,0);
  </code></pre>
  <p>I installed these also:</p>
  <pre><code>&quot;jspdf&quot;: &quot;^1.5.3&quot;,
  &quot;jspdf-autotable&quot;: &quot;^3.5.13&quot;
  </code></pre>
  <p>How can I solve this error. Can someone help me please?</p>