mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 12:37:16 +08:00
Merge pull request #29087 from Ristaaf/master
Added missing onclone option to the HTML2CanvasOptions interface in the package html2canvas accordingly with official documentation
This commit is contained in:
5
types/html2canvas/index.d.ts
vendored
5
types/html2canvas/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for html2canvas.js 1.0-alpha
|
||||
// Project: https://github.com/niklasvh/html2canvas
|
||||
// Definitions by: Richard Hepburn <https://github.com/rwhepburn>, Pei-Tang Huang <https://github.com/tan9>, Sebastian Schocke <https://github.com/sschocke>
|
||||
// Definitions by: Richard Hepburn <https://github.com/rwhepburn>, Pei-Tang Huang <https://github.com/tan9>, Sebastian Schocke <https://github.com/sschocke>, Rickard Staaf <https://github.com/Ristaaf>
|
||||
// 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user