From fa87be799614843773d1847fe30e1cac2c69d17f Mon Sep 17 00:00:00 2001 From: Garrett Dawson Date: Thu, 28 Jun 2018 16:30:04 -0600 Subject: [PATCH] Update definitions for qrcode.react --- types/qrcode.react/index.d.ts | 3 ++- types/qrcode.react/qrcode.react-tests.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/types/qrcode.react/index.d.ts b/types/qrcode.react/index.d.ts index f730ee7581..d38d8ce89b 100644 --- a/types/qrcode.react/index.d.ts +++ b/types/qrcode.react/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for qrcode.react 0.6 +// Type definitions for qrcode.react 0.8 // Project: https://github.com/zpao/qrcode.react // Definitions by: Mleko // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -13,6 +13,7 @@ declare namespace qrcode { bgColor?: string; fgColor?: string; level?: "L"|"M"|"Q"|"H"; + renderAs?: "svg" | "canvas"; } type QRCode = React.ComponentClass; diff --git a/types/qrcode.react/qrcode.react-tests.tsx b/types/qrcode.react/qrcode.react-tests.tsx index 25136d1a97..b91c1e7944 100644 --- a/types/qrcode.react/qrcode.react-tests.tsx +++ b/types/qrcode.react/qrcode.react-tests.tsx @@ -9,4 +9,5 @@ const qrcodes = [ , , , + , ];