Fix timetable types
This commit is contained in:
parent
8409e28136
commit
0a60efae8b
2
index.ts
2
index.ts
@ -3,7 +3,7 @@ export { Corpus } from './src/database/corpus'
|
||||
export { Pis } from './src/database/pis'
|
||||
export { ReasonCode } from './src/database/reasonCode'
|
||||
export { Station } from './src/database/station'
|
||||
export { Service, Stop } from './src/database/timetable'
|
||||
export { Service, Stop, SimpleService } from './src/database/timetable'
|
||||
export { User } from './src/database/user'
|
||||
|
||||
// Downstream API
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@owlboard/ts-types",
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.6",
|
||||
"description": "Declares Typescript types for the OwlBoard stack",
|
||||
"main": "index.ts",
|
||||
"scripts": {
|
||||
|
@ -7,6 +7,14 @@ interface Stop {
|
||||
tiploc: string;
|
||||
}
|
||||
|
||||
interface SimpleService {
|
||||
stpIndicator: string;
|
||||
trainUid: string;
|
||||
operator: string;
|
||||
stops: Stop[];
|
||||
}
|
||||
|
||||
|
||||
interface Service {
|
||||
transactionType: string;
|
||||
stpIndicator: string;
|
||||
@ -19,6 +27,7 @@ interface Service {
|
||||
scheduleEndDate: Date;
|
||||
daysRun: string[];
|
||||
stops: Stop[];
|
||||
vstp: boolean;
|
||||
}
|
||||
|
||||
export { Stop, Service }
|
||||
export { Stop, Service, SimpleService }
|
@ -12,6 +12,7 @@ export interface OB_TrainTT_service {
|
||||
daysRun: string[];
|
||||
stops: OB_TrainTT_stopDetail[];
|
||||
pis?: OB_Pis_SimpleObject;
|
||||
vstp: boolean;
|
||||
}
|
||||
|
||||
export interface OB_TrainTT_stopDetail {
|
||||
|
Loading…
Reference in New Issue
Block a user