We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9654fab commit 53a883aCopy full SHA for 53a883a
1 file changed
src/types/v1/entities.v1.types.ts
@@ -109,9 +109,12 @@ export interface PollPositionV1 {
109
}
110
111
/** See GeoJSON. */
112
-export interface CoordinateV1 {
113
- coordinates: number[] | number[][];
114
- type: string;
+export type CoordinateV1 = {
+ coordinates: number[];
+ type: "Point";
115
+} | {
116
+ coordinates: number[][][];
117
+ type: "Polygon";
118
119
120
export interface PlaceV1 {
0 commit comments