pdfkit-table icon indicating copy to clipboard operation
pdfkit-table copied to clipboard

Property 'table' in type 'PDFDocumentWithTables' is not assignable to the same property in base type 'PDFDocument'.

Open samasthwafer opened this issue 6 months ago • 1 comments

Property 'table' in type 'PDFDocumentWithTables' is not assignable to the same property in base type 'PDFDocument'. Type '(table: Table, options?: Options | undefined) => Promise' is not assignable to type '{ (options?: TableOptions | undefined): PDFTableObject; (options: TableOptionsWithData): PDFDocument; }'. Types of parameters 'table' and 'options' are incompatible. Type 'TableOptions | undefined' is not assignable to type 'Table'. Type 'undefined' is not assignable to type 'Table'.

samasthwafer avatar Jun 13 '25 11:06 samasthwafer

PDFKit v0.17.0 introduced native tables. If you want to keep using pdfkit-table you can't upgrade past PDFKit v0.16.0, otherwise you'll need to remove the pdfkit-table dependency and change your calls to the table function to match the parameters that PDFKit expects now (that's what I'm currently working on in my project lol)

BenAldebert avatar Aug 05 '25 14:08 BenAldebert