index.d.cts 682 B

123456789101112131415161718192021222324252627282930
  1. import { FeatureCollection, Point, BBox, Polygon } from 'geojson';
  2. import { Units, Grid } from '@turf/helpers';
  3. /**
  4. * http://turfjs.org/docs/#interpolate
  5. */
  6. declare function interpolate(
  7. points: FeatureCollection<Point>,
  8. cellSize: number,
  9. options?: {
  10. gridType?: "point";
  11. property?: string;
  12. units?: Units;
  13. weight?: number;
  14. bbox?: BBox;
  15. }
  16. ): FeatureCollection<Point>;
  17. declare function interpolate(
  18. points: FeatureCollection<Point>,
  19. cellSize: number,
  20. options?: {
  21. gridType?: Grid;
  22. property?: string;
  23. units?: Units;
  24. weight?: number;
  25. bbox?: BBox;
  26. }
  27. ): FeatureCollection<Polygon>;
  28. export { interpolate as default, interpolate };