Add new station types
This commit is contained in:
parent
5fde0ce8bf
commit
4a97a8bd3c
2
index.ts
2
index.ts
|
@ -2,7 +2,7 @@
|
||||||
export { Corpus } from './src/database/corpus'
|
export { Corpus } from './src/database/corpus'
|
||||||
export { Pis } from './src/database/pis'
|
export { Pis } from './src/database/pis'
|
||||||
export { ReasonCode } from './src/database/reasonCode'
|
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 { Service, Stop, SimpleService, ServiceDetail } from './src/database/timetable'
|
||||||
export { User } from './src/database/user'
|
export { User } from './src/database/user'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@owlboard/ts-types",
|
"name": "@owlboard/ts-types",
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"description": "Declares Typescript types for the OwlBoard stack",
|
"description": "Declares Typescript types for the OwlBoard stack",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -3,6 +3,19 @@ interface Station {
|
||||||
TIPLOC: string;
|
TIPLOC: string;
|
||||||
"3ALPHA": string;
|
"3ALPHA": string;
|
||||||
NLCDESC: 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 }
|
Loading…
Reference in New Issue