Use type union instead of BaseIcon class

This commit is contained in:
Christopher Currens
2017-02-20 17:02:29 -08:00
parent 33cfb60ab2
commit bc751ce74e
+1 -1
View File
@@ -105,7 +105,7 @@ declare namespace L {
/*
* Function used to create the cluster icon
*/
iconCreateFunction?: ((cluster: L.MarkerCluster) => L.BaseIcon);
iconCreateFunction?: ((cluster: L.MarkerCluster) => L.Icon | L.DivIcon);
/*
* Boolean to split the addLayers processing in to small intervals so that the page does not freeze.