123456789101112131415161718192021222324252627 |
- import {
- Point,
- MultiPoint,
- LineString,
- MultiLineString,
- Polygon,
- MultiPolygon,
- Feature,
- FeatureCollection,
- AllGeoJSON,
- } from "@turf/helpers";
- /**
- * http://turfjs.org/docs/#flatten
- */
- declare function flatten<T extends Point | MultiPoint>(
- geojson: Feature<T> | FeatureCollection<T> | T
- ): FeatureCollection<Point>;
- declare function flatten<T extends LineString | MultiLineString>(
- geojson: Feature<T> | FeatureCollection<T> | T
- ): FeatureCollection<LineString>;
- declare function flatten<T extends Polygon | MultiPolygon>(
- geojson: Feature<T> | FeatureCollection<T> | T
- ): FeatureCollection<Polygon>;
- declare function flatten(geojson: AllGeoJSON): FeatureCollection<any>;
- export default flatten;
|