Improve NearestPoint type for @turf/nearest-point so that it keeps the properties of the points in the FeatureCollection #1078
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
|