From 4aa9fbc68f5d0946086c0bb8d53219b7df17a1a2 Mon Sep 17 00:00:00 2001 From: Jeong Woo Chang Date: Wed, 23 Jan 2019 15:31:21 -0800 Subject: [PATCH] wrongly typed callbacks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) {} } }); ``` --- types/clusterize.js/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/clusterize.js/index.d.ts b/types/clusterize.js/index.d.ts index 7c549761d6..47da5a2140 100644 --- a/types/clusterize.js/index.d.ts +++ b/types/clusterize.js/index.d.ts @@ -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; } }