czydojade/resources/ts/model/stop.ts
2020-05-02 23:33:15 +02:00

27 lines
471 B
TypeScript

import { Line } from "./line";
import { Location } from "./common";
export interface Stop {
id: any;
name: string;
description?: string;
location?: Location;
onDemand?: boolean;
variant?: string;
}
export interface StopWithDestinations extends Stop{
destinations?: Destination[];
}
export type Destination = {
stop: Stop;
lines: Line[]
}
export type StopGroup = Stop[];
export type StopGroups = {
[name: string]: StopGroup;
}