index.d.ts 447 B

123456789101112131415161718192021
  1. import {
  2. Feature,
  3. FeatureCollection,
  4. Polygon,
  5. MultiPolygon,
  6. MultiPoint,
  7. Point,
  8. Properties,
  9. } from "@turf/helpers";
  10. /**
  11. * http://turfjs.org/docs/#pointswithinpolygon
  12. */
  13. export default function pointsWithinPolygon<
  14. F extends Point | MultiPoint,
  15. G extends Polygon | MultiPolygon,
  16. P = Properties
  17. >(
  18. points: Feature<F, P> | FeatureCollection<F, P>,
  19. polygons: Feature<G> | FeatureCollection<G> | G
  20. ): FeatureCollection<F, P>;