Update definitions for qrcode.react

This commit is contained in:
Garrett Dawson
2018-06-28 16:30:04 -06:00
parent 231b41bccf
commit fa87be7996
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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 <https://github.com/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<QRCodeProps>;
@@ -9,4 +9,5 @@ const qrcodes = [
<QRCode value="https://github.com/DefinitelyTyped/DefinitelyTyped" level="L"/>,
<QRCode value="https://github.com/DefinitelyTyped/DefinitelyTyped" level="H"/>,
<QRCode value="https://github.com/DefinitelyTyped/DefinitelyTyped" size={256} bgColor="pink" fgColor="red" level="Q"/>,
<QRCode value="https://github.com/DefinitelyTyped/DefinitelyTyped" renderAs="svg"/>,
];