UNPKG
@mapbox/geojson-types
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
Flow type declarations for [GeoJSON](https://tools.ietf.org/html/rfc7946).
@mapbox/geojson-types
/
fixtures
/
valid
/
polygon.js.flow
33 lines
(31 loc)
•
358 B
Flow
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// @flow
import
type
{
GeoJSONGeometry
}
from
'../../index'
;
const
geojson
:
GeoJSONGeometry
= {
"type"
:
"Polygon"
,
"coordinates"
: [ [ [
100
,
0
], [
101
,
0
], [
101
,
1
], [
100
,
1
], [
100
,
0
] ] ] }