@types/mapbox__geojson-rewind
v0.5.0
Published
TypeScript definitions for @mapbox/geojson-rewind
Downloads
2,501
Readme
Installation
npm install --save @types/mapbox__geojson-rewind
Summary
This package contains type definitions for @mapbox/geojson-rewind (https://github.com/mapbox/geojson-rewind).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__geojson-rewind.
index.d.ts
import type { Feature, FeatureCollection, Geometry } from "geojson";
/**
* The GeoJSON specification is [picky about winding order](https://tools.ietf.org/html/rfc7946#section-3.1.6).
* This function helps you generate compliant Polygon and MultiPolygon geometries.
*
* @param feature GeoJSON {@link FeatureCollection}, {@link Feature}, or {@link Geometry}. ⚠️**This object is mutated.**⚠️
* @param clockwise if true, the outer ring is clockwise, otherwise it is counterclockwise.
*/
declare function rewind<T extends Feature | FeatureCollection | Geometry>(feature: T, clockwise?: boolean): T;
export = rewind;
Additional Details
- Last updated: Fri, 17 Apr 2026 00:17:47 GMT
- Dependencies: @types/geojson
Credits
These definitions were written by Kyle Hensel.
