Add new station types

This commit is contained in:
Fred Boniface 2024-06-30 21:35:30 +01:00
parent 5fde0ce8bf
commit 4a97a8bd3c
3 changed files with 16 additions and 3 deletions

View File

@ -2,7 +2,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 { Station, NearestStationResponse } from './src/database/station'
export { Service, Stop, SimpleService, ServiceDetail } from './src/database/timetable'
export { User } from './src/database/user'

View File

@ -1,6 +1,6 @@
{
"name": "@owlboard/ts-types",
"version": "1.1.0",
"version": "1.2.0",
"description": "Declares Typescript types for the OwlBoard stack",
"main": "index.ts",
"scripts": {

View File

@ -3,6 +3,19 @@ interface Station {
TIPLOC: string;
"3ALPHA": string;
NLCDESC: string;
location: stationLocation;
operator: string;
}
export { Station }
interface stationLocation {
type: "Point";
coordinates: number[];
}
interface NearestStationResponse {
"3ALPHA": string;
NLCDESC: string;
miles: number;
}
export { Station, NearestStationResponse }