Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#65388 Fixed typo in @types/html-to-pdfmake…
Browse files Browse the repository at this point in the history
… by @CruzeBlade

* Fixed typo in types/html-to-pdfmake

* Changes html-to-pdfmake-tests.ts to adapt changes
  • Loading branch information
CruzeBlade authored and Desplandis committed Jul 3, 2023
1 parent 3b991c7 commit 0968dcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion types/html-to-pdfmake/html-to-pdfmake-tests.ts
Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions types/html-to-pdfmake/index.d.ts
Expand Up @@ -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.
*/
Expand All @@ -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 <font> by using fontSizes. It must be an array with 7 values
*/
Expand All @@ -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;

0 comments on commit 0968dcf

Please sign in to comment.