index.d.ts 581 B

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