From 3d73f0e63cbe485967d9b749fe8a1850a63394f8 Mon Sep 17 00:00:00 2001 From: Rickard Staaf Date: Fri, 21 Sep 2018 13:32:06 +0200 Subject: [PATCH] Added missing onclone option accordingly with official documentation --- types/html2canvas/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/html2canvas/index.d.ts b/types/html2canvas/index.d.ts index 4fcfd81338..7d6c8eb5c8 100644 --- a/types/html2canvas/index.d.ts +++ b/types/html2canvas/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for html2canvas.js 1.0-alpha // Project: https://github.com/niklasvh/html2canvas -// Definitions by: Richard Hepburn , Pei-Tang Huang , Sebastian Schocke +// Definitions by: Richard Hepburn , Pei-Tang Huang , Sebastian Schocke , Rickard Staaf // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -35,6 +35,9 @@ declare namespace Html2Canvas { /** Whether to log events in the console. */ logging?: boolean; + /** Callback function which is called when the Document has been cloned for rendering, can be used to modify the contents that will be rendered without affecting the original source document. */ + onclone?: { (doc: HTMLDocument): void }; + /** Url to the proxy which is to be used for loading cross-origin images. If left empty, cross-origin images won't be loaded. */ proxy?: string;