From 30e826a1fa0c31e330e0f50ab1e2eea6e453068e Mon Sep 17 00:00:00 2001 From: Nelson Chan <3271800+chakflying@users.noreply.github.com> Date: Fri, 22 Nov 2024 18:56:31 +0800 Subject: [PATCH] Fix: Update getTextDimensions type def. --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 8a9553073..68c792fe5 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1049,7 +1049,7 @@ declare module "jspdf" { func: (jsPDFInstance: jsPDF, pages: number) => number[] ): jsPDF; getTextDimensions( - text: string, + text: string | number | string[], options?: { font?: string; fontSize?: number;