DefinitelyTyped/types/react-native-honeywell-scanner/index.d.ts
Adam Walker 02903fa513 Add typings for react-native-honeywell-scanner (#35797)
* Add typings for react-native-honeywell-scanner

* fixup! fix export error
2019-05-28 15:51:38 -07:00

16 lines
625 B
TypeScript

// Type definitions for react-native-honeywell-scanner 1.0
// Project: https://github.com/Volst/react-native-honeywell-scanner
// Definitions by: Adam Walker <https://github.com/crashdoom>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.4
declare namespace HoneywellScanner {
const isCompatible: boolean;
function on(eventName: string, handler: (event: string | null) => void): void;
function off(eventName: string, handler: () => void): void;
function startReader(): Promise<boolean>;
function stopReader(): Promise<void>;
}
export default HoneywellScanner;