Merge pull request #344 from xvzf/add-typescript-module

Declare module so webpack can do its work
pull/247/merge
Eric Blade 7 years ago committed by GitHub
commit e96eb9f788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,8 +2,10 @@
// Project: http://serratus.github.io/quaggaJS/
// Definitions by: Cam Birch, Peter Horwood aka Madman Pierre, Dan Manastireanu <https://github.com/danmana>
declare var Quagga: QuaggaJSStatic;
export default Quagga;
declare module "quagga" {
var Quagga: QuaggaJSStatic;
export default Quagga;
}
interface QuaggaJSStatic {
/**
@ -235,7 +237,7 @@ interface QuaggaJSResultCollector {
/*
* a static function that returns you a ResultCollector
*/
create?(QuaggaJSResultCollector): QuaggaJSResultCollector;
create?(param: QuaggaJSResultCollector): QuaggaJSResultCollector;
getResults?(): QuaggaJSCodeResult[];
}

Loading…
Cancel
Save