@types/wkhtmltopdf
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -19,3 +19,7 @@ // Type definitions for wkhtmltopdf 0.3 | ||
*/ | ||
declare function wkhtmltopdf(html: string, options?: Options, callback?: (err: Error, stream: NodeJS.ReadWriteStream) => void): NodeJS.ReadWriteStream; | ||
declare function wkhtmltopdf( | ||
html: string, | ||
options?: Options, | ||
callback?: (err: Error, stream: NodeJS.ReadWriteStream) => void, | ||
): NodeJS.ReadWriteStream; | ||
/** | ||
@@ -29,3 +33,7 @@ * Call wkhtmltopdf and write PDF | ||
*/ | ||
declare function wkhtmltopdf(url: string, options?: Options, callback?: (err: Error, stream: NodeJS.ReadWriteStream) => void): NodeJS.ReadWriteStream; | ||
declare function wkhtmltopdf( | ||
url: string, | ||
options?: Options, | ||
callback?: (err: Error, stream: NodeJS.ReadWriteStream) => void, | ||
): NodeJS.ReadWriteStream; | ||
/** | ||
@@ -74,3 +82,3 @@ * Call wkhtmltopdf and write PDF | ||
/** Set log level (default info) */ | ||
logLevel?: "none"|"error"|"warn"|"info" | undefined; | ||
logLevel?: "none" | "error" | "warn" | "info" | undefined; | ||
/** Generates lower quality pdf/ps. Useful to shrink the result document space */ | ||
@@ -87,9 +95,38 @@ lowquality?: boolean | undefined; | ||
/** Set orientation to Landscape or Portrait (default Portrait) */ | ||
orientation?: "Landscape"|"Portrait" | undefined; | ||
orientation?: "Landscape" | "Portrait" | undefined; | ||
/** Page height in unitreal (e.g 10mm 2cm 0.5in) */ | ||
pageHeight?: string | undefined; | ||
/** Set paper size to: A4, Letter, etc. (default A4) */ | ||
pageSize?: "A0"|"A1"|"A2"|"A3"|"A4"|"A5"|"A6"|"A7"|"A8"|"A9"| | ||
"B0"|"B1"|"B10"|"B2"|"B3"|"B4"|"B5"|"B6"|"B7"|"B8"|"B9"| | ||
"C5E"|"Comm10E"|"DLE"|"Executive"|"Folio"|"Ledger"|"Legal"|"Letter"|"Tabloid" | undefined; | ||
pageSize?: | ||
| "A0" | ||
| "A1" | ||
| "A2" | ||
| "A3" | ||
| "A4" | ||
| "A5" | ||
| "A6" | ||
| "A7" | ||
| "A8" | ||
| "A9" | ||
| "B0" | ||
| "B1" | ||
| "B10" | ||
| "B2" | ||
| "B3" | ||
| "B4" | ||
| "B5" | ||
| "B6" | ||
| "B7" | ||
| "B8" | ||
| "B9" | ||
| "C5E" | ||
| "Comm10E" | ||
| "DLE" | ||
| "Executive" | ||
| "Folio" | ||
| "Ledger" | ||
| "Legal" | ||
| "Letter" | ||
| "Tabloid" | ||
| undefined; | ||
/** Page width in unitreal (e.g 10mm 2cm 0.5in) */ | ||
@@ -100,3 +137,3 @@ pageWidth?: string | undefined; | ||
/** Debug prints stderr messages */ | ||
debug?: boolean|((data: Buffer) => void) | undefined; | ||
debug?: boolean | ((data: Buffer) => void) | undefined; | ||
/** debugStdOut prints any stdout warning messages */ | ||
@@ -107,3 +144,3 @@ debugStdOut?: boolean | undefined; | ||
/** Ignore warnings */ | ||
ignore?: ReadonlyArray<string|RegExp> | undefined; | ||
ignore?: ReadonlyArray<string | RegExp> | undefined; | ||
/** If defined only output to this path */ | ||
@@ -190,5 +227,5 @@ output?: string | undefined; | ||
/** Specify how to handle pages that fail to load: abort, ignore or skip (default abort) */ | ||
loadErrorHandling?: "abort"|"ignore"|"skip" | undefined; | ||
loadErrorHandling?: "abort" | "ignore" | "skip" | undefined; | ||
/** Specify how to handle media files that fail to load: abort, ignore or skip (default ignore) */ | ||
loadMediaErrorHandling?: "abort"|"ignore"|"skip" | undefined; | ||
loadMediaErrorHandling?: "abort" | "ignore" | "skip" | undefined; | ||
/** Do not allowed conversion of a local file to read in other local files, unless explicitly allowed with --allow (default) */ | ||
@@ -195,0 +232,0 @@ disableLocalFileAccess?: boolean | undefined; |
{ | ||
"name": "@types/wkhtmltopdf", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "TypeScript definitions for wkhtmltopdf", | ||
@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wkhtmltopdf", | ||
}, | ||
"typesPublisherContentHash": "5df7bb8cb7f1dbd51d27e2d7e189d144decbda6412e4d6fa709904f3351040dd", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "9354da6f2783d4e53ec031fb869b65e95ea8d18a6cdd037d93a87af06b12db83", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 02 Jul 2021 18:05:42 GMT | ||
* Last updated: Mon, 25 Sep 2023 13:39:07 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17767
350