mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
30 lines
835 B
TypeScript
30 lines
835 B
TypeScript
// Type definitions for react-qr-reader 2.1
|
|
// Project: https://github.com/JodusNodus/react-qr-reader
|
|
// Definitions by: David Kevork <https://github.com/davidkevork>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from "react";
|
|
|
|
declare namespace QrReader {
|
|
interface props {
|
|
onScan: (data: string | null) => void;
|
|
onError: (err: any) => void;
|
|
onLoad?: () => void;
|
|
onImageLoad?: (event: React.SyntheticEvent<HTMLImageElement>) => void;
|
|
delay?: number | false;
|
|
facingMode?: 'user' | 'environment';
|
|
legacyMode?: boolean;
|
|
resolution?: number;
|
|
showViewFinder?: boolean;
|
|
style?: any;
|
|
className?: string;
|
|
}
|
|
}
|
|
|
|
export as namespace QrReader;
|
|
|
|
declare class QrReader extends React.Component<QrReader.props> {}
|
|
|
|
export = QrReader;
|