ts-types/database/timetable.ts
2023-07-17 12:20:47 +01:00

24 lines
513 B
TypeScript

interface Stop {
publicDeparture?: string | null;
wttDeparture?: string | null;
publicArrival?: string | null;
wttArrival?: string | null;
isPublic: boolean;
tiploc: string;
}
interface Service {
transactionType: string;
stpIndicator: string;
operator: string;
trainUid: string;
headcode: string;
powerType: string;
planSpeed: string;
scheduleStartDate: Date;
scheduleEndDate: Date;
daysRun: string[];
stops: Stop[];
}
export { Stop, Service }