From 3d4a8549328f164c200e0068146780096cd6e085 Mon Sep 17 00:00:00 2001 From: Lukas Hollaender Date: Fri, 14 Aug 2020 09:31:20 +0200 Subject: [PATCH] fix getTextDimensions typings --- types/index.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index bb0e08eaa..27a4978bf 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -915,7 +915,16 @@ declare module "jspdf" { setHeaderFunction( func: (jsPDFInstance: jsPDF, pages: number) => number[] ): jsPDF; - getTextDimensions(txt: string, options?: any): { x: number; y: number }; + getTextDimensions( + text: string, + options?: { + font?: string; + fontSize?: number; + maxWidth?: number; + scaleFactor?: number; + } + ): { w: number; h: number }; + cellAddPage(): jsPDF; cell( x: number,