Installation
npm install --save @types/react-qr-reader
Summary
This package contains type definitions for react-qr-reader (https://github.com/JodusNodus/react-qr-reader).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-qr-reader.
import * as React from "react";
declare namespace QrReader {
interface props {
onScan: (data: string | null) => void;
onError: (err: any) => void;
onLoad?: (() => void) | undefined;
onImageLoad?: ((event: React.SyntheticEvent<HTMLImageElement>) => void) | undefined;
delay?: number | false | undefined;
facingMode?: "user" | "environment" | undefined;
legacyMode?: boolean | undefined;
resolution?: number | undefined;
showViewFinder?: boolean | undefined;
style?: any;
className?: string | undefined;
}
}
export as namespace QrReader;
declare class QrReader extends React.Component<QrReader.props> {
openImageDialog: () => void;
}
export = QrReader;
Additional Details
- Last updated: Wed, 27 Sep 2023 07:12:04 GMT
- Dependencies: @types/react
- Global values:
QrReader
Credits
These definitions were written by David Kevork.