UNPKG

@mapbox/geojson-types

Version:

Flow type declarations for [GeoJSON](https://tools.ietf.org/html/rfc7946).

14 lines (11 loc) 407 B
const fs = require('fs'); const fixtures = require('@mapbox/geojson-fixtures'); for (let key in fixtures.geometry) { fs.writeFileSync(`${__dirname}/fixtures/valid/${key}.js.flow`, `// @flow // This file was generated by generate-fixtures.js. Do not edit! import type { GeoJSONGeometry } from '../../index'; const geojson: GeoJSONGeometry = ${JSON.stringify(fixtures.geometry[key], null, 2)} `); }