Improve NearestPoint type for @turf/nearest-point so that it keeps the properties of the points in the FeatureCollection #1084
Annotations
10 errors
Run pnpm install --frozen-lockfile
Argument of type 'Feature<Point, P>' is not assignable to parameter of type 'AllGeoJSON'.
|
Run pnpm install --frozen-lockfile
Argument of type 'FeatureCollection<Point, P>' is not assignable to parameter of type 'Feature<Point, GeoJsonProperties> | FeatureCollection<Point, GeoJsonProperties> | Feature<...>'.
|
Run pnpm install --frozen-lockfile
Cannot find name 'GeoJsonProperties'.
|
Run pnpm install --frozen-lockfile
Cannot find name 'GeoJsonProperties'.
|
Run pnpm install --frozen-lockfile
Property 'properties' does not exist on type 'AllGeoJSON'.
|
Run pnpm install --frozen-lockfile
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>'.
|
Run pnpm install --frozen-lockfile
Argument of type 'Feature<Point, P>' is not assignable to parameter of type 'AllGeoJSON'.
|
Run pnpm install --frozen-lockfile
Argument of type 'FeatureCollection<Point, P>' is not assignable to parameter of type 'Feature<Point, GeoJsonProperties> | FeatureCollection<Point, GeoJsonProperties> | Feature<...>'.
|
Run pnpm install --frozen-lockfile
Cannot find name 'GeoJsonProperties'.
|
Run pnpm install --frozen-lockfile
Cannot find name 'GeoJsonProperties'.
|
Loading