mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
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:
Vendored
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user