Skip to content

Commit

Permalink
Merge pull request #19 from mfedderly/mf/fix-types
Browse files Browse the repository at this point in the history
Fix typescript typings
  • Loading branch information
rowanwins authored Nov 20, 2024
2 parents b193aa1 + 364fc17 commit 3a111b4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions types.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { FeatureCollection, Feature, GeometryObject } from "geojson";

export type Intersection = [number, number];
declare namespace sweeplineIntersections {
export type Intersection = [number, number];
}

export default function sweeplineIntersections(
declare function sweeplineIntersections(
geojson: FeatureCollection<GeometryObject> | Feature<GeometryObject>,
ignoreSelfIntersections: boolean
): Intersection[];
): [number, number][];

export = sweeplineIntersections;

0 comments on commit 3a111b4

Please sign in to comment.