DefinitelyTyped/types/qrcode.react/index.d.ts
2017-06-19 13:34:54 +02:00

23 lines
534 B
TypeScript

// Type definitions for qrcode.react 0.6
// Project: https://github.com/zpao/qrcode.react
// Definitions by: Mleko <https://github.com/mleko>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="react" />
declare namespace qrcode {
interface QRCodeProps {
value: string;
size?: number;
bgColor?: string;
fgColor?: string;
level?: "L"|"M"|"Q"|"H";
}
type QRCode = React.ComponentClass<QRCodeProps>;
}
declare const qrcode: qrcode.QRCode;
export = qrcode;