DefinitelyTyped/types/qrcode.react/index.d.ts
2018-06-28 16:30:04 -06:00

24 lines
565 B
TypeScript

// 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
// TypeScript Version: 2.6
/// <reference types="react" />
declare namespace qrcode {
interface QRCodeProps {
value: string;
size?: number;
bgColor?: string;
fgColor?: string;
level?: "L"|"M"|"Q"|"H";
renderAs?: "svg" | "canvas";
}
type QRCode = React.ComponentClass<QRCodeProps>;
}
declare const qrcode: qrcode.QRCode;
export = qrcode;