Files
turftracker/frontend/node_modules/@turf/flatten/index.d.ts
2026-04-09 13:19:47 -05:00

28 lines
725 B
TypeScript

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;