chore: move types to separate file
This commit is contained in:
parent
ba7a0e04c8
commit
bd229982f6
5 changed files with 29 additions and 37 deletions
23
src/lib/types.ts
Normal file
23
src/lib/types.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
export interface GameOptions {
|
||||
mode: "easy" | "hard" | "extreme demon ultra miguel";
|
||||
metro: boolean;
|
||||
tram: boolean;
|
||||
}
|
||||
|
||||
export interface GameData {
|
||||
lines: [GeoJSON.Feature, string][];
|
||||
stops: [number, number][];
|
||||
stopName: string;
|
||||
gameId: string;
|
||||
}
|
||||
|
||||
export interface CheckData {
|
||||
gameId: string;
|
||||
latlng: [number, number];
|
||||
}
|
||||
|
||||
export interface CheckResponse {
|
||||
solution: [number, number];
|
||||
distance: number;
|
||||
score: number;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue