For anyone, using this library within TypeScript (and together with d3), you can use
declare module "@mapbox/geojson-rewind" {
import {ExtendedFeature, ExtendedFeatureCollection, ExtendedGeometryCollection, GeoGeometryObjects} from "d3-geo"
export default function rewind(
geojson: ExtendedFeature | ExtendedFeatureCollection | GeoGeometryObjects | ExtendedGeometryCollection,
clockwise: boolean,
): ExtendedFeature | ExtendedFeatureCollection | GeoGeometryObjects | ExtendedGeometryCollection;
}
If people are interested, I guess I could submit a PR with this code in an index.d.ts.
For anyone, using this library within TypeScript (and together with d3), you can use
If people are interested, I guess I could submit a PR with this code in an
index.d.ts.