index.d.ts 492 B

12345678910111213141516171819202122232425
  1. import {
  2. LineString,
  3. MultiLineString,
  4. GeometryCollection,
  5. Units,
  6. Feature,
  7. FeatureCollection,
  8. } from "@turf/helpers";
  9. /**
  10. * http://turfjs.org/docs/#lineChunk
  11. */
  12. export default function lineChunk<T extends LineString | MultiLineString>(
  13. geojson:
  14. | Feature<T>
  15. | FeatureCollection<T>
  16. | T
  17. | GeometryCollection
  18. | Feature<GeometryCollection>,
  19. segmentLength: number,
  20. options?: {
  21. units?: Units;
  22. reverse?: boolean;
  23. }
  24. ): FeatureCollection<LineString>;