From 364fc17df54068e237cfef49e9e19d4d1ea7db5f Mon Sep 17 00:00:00 2001 From: Matthew Fedderly Date: Thu, 8 Aug 2024 16:46:10 -0400 Subject: [PATCH] Cleaner way of fixing attw --- types.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types.d.ts b/types.d.ts index e31aa08..465a023 100644 --- a/types.d.ts +++ b/types.d.ts @@ -1,6 +1,12 @@ import { FeatureCollection, Feature, GeometryObject } from "geojson"; -export = function sweeplineIntersections( +declare namespace sweeplineIntersections { + export type Intersection = [number, number]; +} + +declare function sweeplineIntersections( geojson: FeatureCollection | Feature, ignoreSelfIntersections: boolean ): [number, number][]; + +export = sweeplineIntersections;