From 0043edad7090efde0017c77bbb802618b47bd429 Mon Sep 17 00:00:00 2001 From: Mathieu Ghennassia Date: Wed, 11 Sep 2019 16:12:11 +0200 Subject: [PATCH] =?UTF-8?q?Add=20paginationOffset,=20childProcessOptions,?= =?UTF-8?q?=20and=20httpCookies=20in=20CreateO=E2=80=A6=20(#38123)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add paginationOffset, childProcessOptions, and httpCookies in CreateOptions * Update version --- types/html-pdf/index.d.ts | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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 {