index.d.cts 694 B

1234567891011121314151617181920
  1. import { Feature, Geometry } from 'geojson';
  2. /**
  3. * Boolean-touches true if none of the points common to both geometries
  4. * intersect the interiors of both geometries.
  5. *
  6. * @function
  7. * @param {Geometry|Feature<any>} feature1 GeoJSON Feature or Geometry
  8. * @param {Geometry|Feature<any>} feature2 GeoJSON Feature or Geometry
  9. * @returns {boolean} true/false
  10. * @example
  11. * var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);
  12. * var point = turf.point([1, 1]);
  13. *
  14. * turf.booleanTouches(point, line);
  15. * //=true
  16. */
  17. declare function booleanTouches(feature1: Feature<any> | Geometry, feature2: Feature<any> | Geometry): boolean;
  18. export { booleanTouches, booleanTouches as default };