mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Update definitions for qrcode.react
This commit is contained in:
Vendored
+2
-1
@@ -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"/>,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user