@mapbox/geojson-types
Flow type declarations for [GeoJSON](https://tools.ietf.org/html/rfc7946).
Last updated 8 years ago by mapbox-npm-09 .
ISC · Original npm · Tarball · package.json
$ npm 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 (8 years ago)

3 Versions

  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE