Skip to content

Commit c4709a8

Browse files
committed
Remove errant extra callback arg, annotate more types
1 parent b920378 commit c4709a8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/turf-meta/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,14 @@ function lineEach<P extends GeoJsonProperties = GeoJsonProperties>(
13581358
var coords = feature.geometry.coordinates;
13591359
switch (type) {
13601360
case "LineString":
1361-
if (callback(feature, featureIndex, multiFeatureIndex, 0, 0) === false)
1361+
if (
1362+
callback(
1363+
feature as Feature<LineString, P>,
1364+
featureIndex,
1365+
multiFeatureIndex,
1366+
0
1367+
) === false
1368+
)
13621369
return false;
13631370
break;
13641371
case "Polygon":

0 commit comments

Comments
 (0)