Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/qrcode.react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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
/// <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: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react