Closed
Description
when trying to create a clipping rectangle using rect(x, y, w, h, style) with style = null
typescript definition is showing null as an invalid argument option
using rect(x, y, w, h)
or rect(x, y, w, h, undefined)
does not create the proper clipping rectangle
changing line 722 in jsPDF/types/index.d.ts seams to work
from:
rect(x: number, y: number, w: number, h: number, style?: string): jsPDF;
to:
rect(x: number, y: number, w: number, h: number, style?: string | null ): jsPDF;