diff --git a/types/html-pdf/index.d.ts b/types/html-pdf/index.d.ts
index a75ac3fd1f..4b951def0d 100644
--- a/types/html-pdf/index.d.ts
+++ b/types/html-pdf/index.d.ts
@@ -1,4 +1,4 @@
-// Type definitions for html-pdf v2.1.0
+// Type definitions for html-pdf v2.2.0
// Project: https://github.com/marcbachmann/node-html-pdf
// Definitions by: Seth Westphal
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -28,6 +28,8 @@ declare module 'html-pdf' {
left?: string;
};
+ paginationOffset?: number;
+
header?: {
height?: string;
contents?: string;
@@ -58,11 +60,29 @@ declare module 'html-pdf' {
script?: string;
timeout?: number;
+ // Time we should wait after window load
+ renderDelay?: 'manual' | number;
+
// HTTP Headers that are used for requests
httpHeaders?: {
[header: string]: string;
};
+ // To run Node application as Windows service
+ childProcessOptions?: {
+ detached?: boolean;
+ };
+
+ // HTTP Cookies that are used for requests
+ httpCookies?: Array<{
+ name: string;
+ value: string;
+ domain?: string;
+ path: string;
+ httponly?: boolean;
+ secure?: boolean;
+ expires?: number;
+ }>;
}
export interface FileInfo {