@mapbox/geojson-types
Flow type declarations for [GeoJSON](https://tools.ietf.org/html/rfc7946).
Last updated 7 years ago by mapbox-npm-09 .
ISC · Original npm
$ cnpm install @mapbox/geojson-types 
SYNC missed versions from official npm registry.

geojson-types

Flow type declarations for GeoJSON.

Install

npm install @mapbox/geojson-types

Use

// @flow

import type {
    GeoJSONFeatureCollection,
    GeoJSONFeature,

    // specific geometries
    GeoJSONPoint,
    GeoJSONLineString,
    GeoJSONPolygon,
    GeoJSONMultiPoint,
    GeoJSONMultiLineString,
    GeoJSONMultiPolygon,

    // any geometry
    GeoJSONGeometry,

    // any feature collection, feature, or geometry
    GeoJSON,
} from '@mapbox/geojson-types';

function doSomething(data: GeoJSON) {
    // ...
}

Current Tags

  • 1.0.2                                ...           latest (7 years ago)

1 Versions

  • 1.0.2                                ...           7 years ago

Copyright 2013 - present © cnpmjs.org