wrongly typed callbacks

As official demo code shows that the callbacks are wrongly typed.

```
// Callbacks usage example
var clusterize = new Clusterize({
  …
  callbacks: {
    clusterWillChange: function() {},
    clusterChanged: function() {},
    scrollingProgress: function(progress) {}
  }
});
```
This commit is contained in:
Jeong Woo Chang
2019-01-23 15:31:21 -08:00
committed by GitHub
parent 32a5326e3a
commit 4aa9fbc68f
+3 -3
View File
@@ -32,9 +32,9 @@ declare namespace Clusterize {
}
interface Callbacks {
clusterWillChange?(cb: () => void): void;
clusterChanged?(cb: () => void): void;
scrollingProgress?(cb: (progress: number) => void): void;
clusterWillChange?: () => void;
clusterChanged?: () => void;
scrollingProgress?: (progress: number) => void;
}
}