We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42b5382 commit 4c73d76Copy full SHA for 4c73d76
type-definitions/quagga.d.ts
@@ -2,8 +2,10 @@
2
// Project: http://serratus.github.io/quaggaJS/
3
// Definitions by: Cam Birch, Peter Horwood aka Madman Pierre, Dan Manastireanu <https://github.com/danmana>
4
5
-declare var Quagga: QuaggaJSStatic;
6
-export default Quagga;
+declare module "quagga" {
+ var Quagga: QuaggaJSStatic;
7
+ export default Quagga;
8
+}
9
10
interface QuaggaJSStatic {
11
/**
@@ -235,7 +237,7 @@ interface QuaggaJSResultCollector {
235
237
/*
236
238
* a static function that returns you a ResultCollector
239
*/
- create?(QuaggaJSResultCollector): QuaggaJSResultCollector;
240
+ create?(param: QuaggaJSResultCollector): QuaggaJSResultCollector;
241
242
getResults?(): QuaggaJSCodeResult[];
243
}
0 commit comments