Added an exported autoTable method which can be used with typescript and alternative jsPDF version such as the yworks fork and the official nodejs dist files.
import jsPDF from 'jspdf'
// import jsPDF from 'yworks-pdf' using yworks fork
// import jsPDF from 'jspdf/dist/jspdf.node.debug' for nodejs support
import autoTable from 'jspdf-autotable'
const doc = new jsPDF()
autoTable(doc, { html: '#my-table' })
doc.save('table.pdf')