Skip to content

Improve NearestPoint type for @turf/nearest-point so that it keeps the properties of the points in the FeatureCollection #1078

Improve NearestPoint type for @turf/nearest-point so that it keeps the properties of the points in the FeatureCollection

Improve NearestPoint type for @turf/nearest-point so that it keeps the properties of the points in the FeatureCollection #1078

Re-run triggered April 3, 2025 23:18
Status Failure
Total duration 1m 47s
Artifacts

turf.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

32 errors
build (22.x)
Argument of type 'Feature<Point, P>' is not assignable to parameter of type 'AllGeoJSON'.
build (22.x)
Argument of type 'FeatureCollection<Point, P>' is not assignable to parameter of type 'Feature<Point, GeoJsonProperties> | FeatureCollection<Point, GeoJsonProperties> | Feature<...>'.
build (22.x)
Cannot find name 'GeoJsonProperties'.
build (22.x)
Cannot find name 'GeoJsonProperties'.
build (22.x)
Property 'properties' does not exist on type 'AllGeoJSON'.
build (22.x)
Type '{ properties: any; type: "Point"; coordinates: Position; bbox?: BBox | undefined; } | { properties: any; type: "MultiPoint"; coordinates: Position[]; bbox?: BBox | undefined; } | ... 7 more ... | { ...; }' is not assignable to type 'NearestPoint<P>'.
build (22.x)
Argument of type 'Feature<Point, P>' is not assignable to parameter of type 'AllGeoJSON'.
build (22.x)
Argument of type 'FeatureCollection<Point, P>' is not assignable to parameter of type 'Feature<Point, GeoJsonProperties> | FeatureCollection<Point, GeoJsonProperties> | Feature<...>'.
build (22.x)
Cannot find name 'GeoJsonProperties'.
build (22.x)
Cannot find name 'GeoJsonProperties'.
build (18.x)
Argument of type 'Feature<Point, P>' is not assignable to parameter of type 'AllGeoJSON'.
build (18.x)
Argument of type 'FeatureCollection<Point, P>' is not assignable to parameter of type 'Feature<Point, GeoJsonProperties> | FeatureCollection<Point, GeoJsonProperties> | Feature<...>'.
build (18.x)
Cannot find name 'GeoJsonProperties'.
build (18.x)
Cannot find name 'GeoJsonProperties'.
build (18.x)
Property 'properties' does not exist on type 'AllGeoJSON'.
build (18.x)
Type '{ properties: any; type: "Point"; coordinates: Position; bbox?: BBox | undefined; } | { properties: any; type: "MultiPoint"; coordinates: Position[]; bbox?: BBox | undefined; } | ... 7 more ... | { ...; }' is not assignable to type 'NearestPoint<P>'.
build (18.x)
Argument of type 'Feature<Point, P>' is not assignable to parameter of type 'AllGeoJSON'.
build (18.x)
Argument of type 'FeatureCollection<Point, P>' is not assignable to parameter of type 'Feature<Point, GeoJsonProperties> | FeatureCollection<Point, GeoJsonProperties> | Feature<...>'.
build (18.x)
Cannot find name 'GeoJsonProperties'.
build (18.x)
Cannot find name 'GeoJsonProperties'.
build (18.x)
The strategy configuration was canceled because "build._22_x" failed
build (20.x)
Argument of type 'Feature<Point, P>' is not assignable to parameter of type 'AllGeoJSON'.
build (20.x)
Argument of type 'FeatureCollection<Point, P>' is not assignable to parameter of type 'Feature<Point, GeoJsonProperties> | FeatureCollection<Point, GeoJsonProperties> | Feature<...>'.
build (20.x)
Cannot find name 'GeoJsonProperties'.
build (20.x)
Cannot find name 'GeoJsonProperties'.
build (20.x)
Property 'properties' does not exist on type 'AllGeoJSON'.
build (20.x)
Type '{ properties: any; type: "Point"; coordinates: Position; bbox?: BBox | undefined; } | { properties: any; type: "MultiPoint"; coordinates: Position[]; bbox?: BBox | undefined; } | ... 7 more ... | { ...; }' is not assignable to type 'NearestPoint<P>'.
build (20.x)
Argument of type 'Feature<Point, P>' is not assignable to parameter of type 'AllGeoJSON'.
build (20.x)
Argument of type 'FeatureCollection<Point, P>' is not assignable to parameter of type 'Feature<Point, GeoJsonProperties> | FeatureCollection<Point, GeoJsonProperties> | Feature<...>'.
build (20.x)
Cannot find name 'GeoJsonProperties'.
build (20.x)
Cannot find name 'GeoJsonProperties'.
build (20.x)
The strategy configuration was canceled because "build._22_x" failed