diff --git a/examples/typescript/index.ts b/examples/typescript/index.ts index e8b5de63..50e9de98 100644 --- a/examples/typescript/index.ts +++ b/examples/typescript/index.ts @@ -1,5 +1,5 @@ import jsPDF = require('jspdf') -import autoTable, { autoTable as autoTableType} from 'jspdf-autotable' +import autoTable from 'jspdf-autotable' const head = [['ID', 'Country', 'Index', 'Capital']] const data = [ @@ -21,14 +21,4 @@ autoTable(doc, { }, }) -// or - -;((doc as any).autoTable as autoTableType)({ - head: head, - body: data, - didDrawCell: (data) => { - console.log(data.column.index) - }, -}) - doc.save('table.pdf')