Skip to content

Commit 4c73d76

Browse files
authored
Declare module so webpack can do its work
1 parent 42b5382 commit 4c73d76

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

type-definitions/quagga.d.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
// Project: http://serratus.github.io/quaggaJS/
33
// Definitions by: Cam Birch, Peter Horwood aka Madman Pierre, Dan Manastireanu <https://github.com/danmana>
44

5-
declare var Quagga: QuaggaJSStatic;
6-
export default Quagga;
5+
declare module "quagga" {
6+
var Quagga: QuaggaJSStatic;
7+
export default Quagga;
8+
}
79

810
interface QuaggaJSStatic {
911
/**
@@ -235,7 +237,7 @@ interface QuaggaJSResultCollector {
235237
/*
236238
* a static function that returns you a ResultCollector
237239
*/
238-
create?(QuaggaJSResultCollector): QuaggaJSResultCollector;
240+
create?(param: QuaggaJSResultCollector): QuaggaJSResultCollector;
239241

240242
getResults?(): QuaggaJSCodeResult[];
241243
}

0 commit comments

Comments
 (0)