mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Declare module so webpack can do its work
This commit is contained in:
Vendored
+4
-2
@@ -2,8 +2,10 @@
|
|||||||
// Project: http://serratus.github.io/quaggaJS/
|
// Project: http://serratus.github.io/quaggaJS/
|
||||||
// Definitions by: Cam Birch, Peter Horwood aka Madman Pierre, Dan Manastireanu <https://github.com/danmana>
|
// Definitions by: Cam Birch, Peter Horwood aka Madman Pierre, Dan Manastireanu <https://github.com/danmana>
|
||||||
|
|
||||||
declare var Quagga: QuaggaJSStatic;
|
declare module "quagga" {
|
||||||
|
var Quagga: QuaggaJSStatic;
|
||||||
export default Quagga;
|
export default Quagga;
|
||||||
|
}
|
||||||
|
|
||||||
interface QuaggaJSStatic {
|
interface QuaggaJSStatic {
|
||||||
/**
|
/**
|
||||||
@@ -235,7 +237,7 @@ interface QuaggaJSResultCollector {
|
|||||||
/*
|
/*
|
||||||
* a static function that returns you a ResultCollector
|
* a static function that returns you a ResultCollector
|
||||||
*/
|
*/
|
||||||
create?(QuaggaJSResultCollector): QuaggaJSResultCollector;
|
create?(param: QuaggaJSResultCollector): QuaggaJSResultCollector;
|
||||||
|
|
||||||
getResults?(): QuaggaJSCodeResult[];
|
getResults?(): QuaggaJSCodeResult[];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user