Skip to content

Commit 53a883a

Browse files
authored
Fix coordiante types (#626)
1 parent 9654fab commit 53a883a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/types/v1/entities.v1.types.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,12 @@ export interface PollPositionV1 {
109109
}
110110

111111
/** See GeoJSON. */
112-
export interface CoordinateV1 {
113-
coordinates: number[] | number[][];
114-
type: string;
112+
export type CoordinateV1 = {
113+
coordinates: number[];
114+
type: "Point";
115+
} | {
116+
coordinates: number[][][];
117+
type: "Polygon";
115118
}
116119

117120
export interface PlaceV1 {

0 commit comments

Comments
 (0)