1.0.5 • Published 6 months ago
@types/qrcode.react v1.0.5
Installation
npm install --save @types/qrcode.react
Summary
This package contains type definitions for qrcode.react (https://github.com/zpao/qrcode.react).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qrcode.react.
index.d.ts
// Type definitions for qrcode.react 1.0
// Project: https://github.com/zpao/qrcode.react, http://zpao.github.io/qrcode.react
// Definitions by: Mleko <https://github.com/mleko>,
// Yonas <https://github.com/yonasadiel>,
// Bjoluc <https://github.com/bjoluc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
/// <reference types="react" />
declare namespace qrcode {
interface ImageSettings {
src: string;
x?: number | undefined;
y?: number | undefined;
height?: number | undefined;
width?: number | undefined;
excavate?: boolean | undefined;
}
interface BaseQRCodeProps {
value: string;
size?: number | undefined;
includeMargin?: boolean | undefined;
bgColor?: string | undefined;
fgColor?: string | undefined;
level?: "L"|"M"|"Q"|"H" | undefined;
imageSettings?: ImageSettings | undefined;
}
type CanvasQRCodeProps = BaseQRCodeProps & {
renderAs?: "canvas" | undefined
} & React.CanvasHTMLAttributes<HTMLCanvasElement>;
type SvgQRCodeProps = BaseQRCodeProps & {
renderAs: "svg"
} & React.SVGProps<SVGSVGElement>;
type QRCode = React.ComponentClass<CanvasQRCodeProps | SvgQRCodeProps>;
}
declare const qrcode: qrcode.QRCode;
export = qrcode;
Additional Details
- Last updated: Wed, 07 Jul 2021 17:02:41 GMT
- Dependencies: @types/react
- Global values: none