From df68ef81fc99368d21bc91a99ea30cc9a7b0c570 Mon Sep 17 00:00:00 2001 From: Cerberuser Date: Wed, 10 Oct 2018 01:56:35 +0700 Subject: [PATCH] Fix for backgroundColor property (#29361) --- types/html2canvas/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/html2canvas/index.d.ts b/types/html2canvas/index.d.ts index 7d6c8eb5c8..b931d7cd77 100644 --- a/types/html2canvas/index.d.ts +++ b/types/html2canvas/index.d.ts @@ -14,8 +14,8 @@ declare namespace Html2Canvas { /** Whether to allow cross-origin images to taint the canvas */ allowTaint?: boolean; - /** Canvas background color, if none is specified in DOM. Set undefined for transparent */ - backgroundColor?: string; + /** Canvas background color, if none is specified in DOM. Set null for transparent */ + backgroundColor?: string | null; /** Existing canvas element to use as a base for drawing on */ canvas?: any;