@types/html-to-pdfmake
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -5,2 +5,3 @@ // Type definitions for html-to-pdfmake 2.1 | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// Minimum TypeScript Version: 4.5 | ||
@@ -7,0 +8,0 @@ /** |
{ | ||
"name": "@types/html-to-pdfmake", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "TypeScript definitions for html-to-pdfmake", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/html-to-pdfmake", | ||
"license": "MIT", | ||
@@ -25,4 +26,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "c21c7eef0cf1e37cd4be2a05c6ab4746f76226f0bdcdd8eb5b617926d4939f1b", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "557f792dccac12fc32234cdf24a68f6318de1f2457d6a5fb7e343ced1b2a03eb", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,5 +9,47 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/html-to-pdfmake. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/html-to-pdfmake/index.d.ts) | ||
````ts | ||
// Type definitions for html-to-pdfmake 2.1 | ||
// Project: https://github.com/Aymkdn/html-to-pdfmake#readme | ||
// Definitions by: Martin Zloch <https://github.com/me> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// Minimum TypeScript Version: 4.5 | ||
/** | ||
* This module will convert some basic and valid HTML code to its equivalent in pdfmake. | ||
* @see https://www.npmjs.com/package/html-to-pdfmake | ||
*/ | ||
declare function htmlToPdfmake( | ||
html: string, | ||
options?: Partial<{ | ||
/** | ||
* 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; | ||
/** | ||
* You can overwrite the default sizes for the old HTML4 tag <font> by using fontSizes. It must be an array with 7 values | ||
*/ | ||
fontSizes: [number, number, number, number, number, number, number]; | ||
/** | ||
* By passing replaceText as a function with two parameters (text and nodes) you can modify the text of all the nodes in your HTML document. | ||
*/ | ||
replaceText: (text: string, nodes: HTMLElement[]) => string; | ||
/** | ||
* 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; | ||
/** | ||
* If you use Node, then you'll have to pass the window object | ||
*/ | ||
window: import("jsdom").DOMWindow; | ||
}>, | ||
): import("pdfmake/interfaces").Content; | ||
export = htmlToPdfmake; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 26 Apr 2021 12:01:36 GMT | ||
* Last updated: Sat, 23 Jul 2022 22:02:25 GMT | ||
* Dependencies: [@types/pdfmake](https://npmjs.com/package/@types/pdfmake), [@types/jsdom](https://npmjs.com/package/@types/jsdom) | ||
@@ -14,0 +56,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6170
36
0
59