From 4c22be8ab9a6e2fa86384e2841318510ecee8816 Mon Sep 17 00:00:00 2001 From: Maito1794 Date: Thu, 23 Jan 2025 16:08:53 -0600 Subject: [PATCH 1/2] refactor: fix incorrect typing for property margins in TableConfig interface --- types/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 8a9553073..fca561d11 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -607,7 +607,12 @@ declare module "jspdf" { export interface TableConfig { printHeaders?: boolean; autoSize?: boolean; - margins?: number; + margins?: { + top: number, + bottom: number, + left: number, + width: number + }; fontSize?: number; padding?: number; headerBackgroundColor?: string; From fe637f3a23ce9ef89552b72ddbe4a00146676d27 Mon Sep 17 00:00:00 2001 From: Maito1794 Date: Thu, 23 Jan 2025 16:17:57 -0600 Subject: [PATCH 2/2] execute 'npm run prettier' --- types/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index fca561d11..07c70b248 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -608,10 +608,10 @@ declare module "jspdf" { printHeaders?: boolean; autoSize?: boolean; margins?: { - top: number, - bottom: number, - left: number, - width: number + top: number; + bottom: number; + left: number; + width: number; }; fontSize?: number; padding?: number;