Turfjs / turf

A modular geospatial engine written in JavaScript and TypeScript

Home Page:https://turfjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FeatureCollection Type

pdfabbro opened this issue · comments

Where can I import the FeatureCollection type from turf? After the update to 7.0

import { FeatureCollection } from "@turf/turf";

does not work. Similar with GeometryCollection

See the CHANGELOG for breaking changes, you need to import these types from the @types/geojson package

@twelch Thanks! I looked around but couldn't find the change log. Found it now!

You'll find it at the top-level of the repo, it could be made more visible. I'll reopen this as a documentation task.

@twelch It worked, thanks! I was looking for the change log here https://github.com/Turfjs/turf/releases/tag/v7.0.0 and then here https://github.com/Turfjs/turf/releases. Being a dev, I probably shoulda found it at the root of the code though lol... my bad

Thanks, the release message is automated, maybe an automatic reference to the changelog can get added

Resolved by #2621, changelog has been deprecated and starting with next release, the release notes with any migration steps should be found in the Github release notes.