DefinitelyTyped/types/qrcode.react/index.d.ts
Ferdy Budhidharma 6d2fc7181a feat(react-dependents): update to TS 2.8 (part 1 of 2) (#27743)
* feat(react-dependents): update to TS 2.8

* exclude react-dom

* fix version mismatches
2018-08-03 21:01:14 +01: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.8
/// <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;