Add new station types

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

No files matched your search

+1 -1
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'
+1 -1
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": {
+14 -1
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 }