From 0968dcf8887290987af8637529422f76c5cc0a86 Mon Sep 17 00:00:00 2001 From: CruzeBlade <37212628+CruzeBlade@users.noreply.github.com> Date: Sat, 6 May 2023 17:19:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#65388=20Fixed=20ty?= =?UTF-8?q?po=20in=20@types/html-to-pdfmake=20by=20@CruzeBlade?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed typo in types/html-to-pdfmake * Changes html-to-pdfmake-tests.ts to adapt changes --- types/html-to-pdfmake/html-to-pdfmake-tests.ts | 2 +- types/html-to-pdfmake/index.d.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/types/html-to-pdfmake/html-to-pdfmake-tests.ts b/types/html-to-pdfmake/html-to-pdfmake-tests.ts index ece58048d96ecf..e764ec8631c127 100644 --- a/types/html-to-pdfmake/html-to-pdfmake-tests.ts +++ b/types/html-to-pdfmake/html-to-pdfmake-tests.ts @@ -42,7 +42,7 @@ export const validExample: Content = htmlToPdfmake( removeExtraBlanks: true, showhidden: true, ignoreStyles: ['font-family'], - imagesByReferences: true, + imagesByReference: true, fontSizes: [1, 2, 3, 4, 5, 6, 7], replaceText: (text: string) => text.replace(/-/g, "\\u2011"), tableAutoSize: true, diff --git a/types/html-to-pdfmake/index.d.ts b/types/html-to-pdfmake/index.d.ts index 225f13d3ccb401..9960e6f2cdfc3c 100644 --- a/types/html-to-pdfmake/index.d.ts +++ b/types/html-to-pdfmake/index.d.ts @@ -15,12 +15,12 @@ declare function htmlToPdfmake( /** * If you use Node, then you'll have to pass the window object */ - window: import("jsdom").DOMWindow; + window: import('jsdom').DOMWindow; /** * You can overwrite the default styles using defaultStyles. * Please, note that the above default styles are stronger than the ones defined in the style classes. */ - defaultStyles: import("pdfmake/interfaces").StyleDictionary; + defaultStyles: import('pdfmake/interfaces').StyleDictionary; /** * In some cases, you may see some extra blank spaces in the PDF. Because removing them could be quite resource consuming, the option is false by default. */ @@ -38,7 +38,7 @@ declare function htmlToPdfmake( * and it will automatically load your images in your PDF using the {images} option of PDFMake. * Using this option will change the output of html-to-pdfmake that will return an object with {content, images} */ - imagesByReferences: boolean; + imagesByReference: boolean; /** * You can overwrite the default sizes for the old HTML4 tag by using fontSizes. It must be an array with 7 values */ @@ -51,7 +51,7 @@ declare function htmlToPdfmake( * By passing tableAutoSize with true, then the program will try to define widths and heights for the tables, based on CSS properties width and height that have been provided to TH or TD. */ tableAutoSize: boolean; - }>, -): import("pdfmake/interfaces").Content; + }> +): import('pdfmake/interfaces').Content; export = htmlToPdfmake;