Skip to content

Commit

Permalink
temporarily replace IWeatherStation type to see if that will allow us…
Browse files Browse the repository at this point in the history
… to load new json
  • Loading branch information
bacalj committed Jul 19, 2024
1 parent 020079c commit 6bb1baa
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,35 @@ export interface IPlace {
longitude: number;
}
export interface IStation {station: IWeatherStation, distance: number}
export interface IWeatherStation {
country: string; // "US"
state: string; // 2 char state name
// export interface IWeatherStation {
// country: string; // "US"
// state: string; // 2 char state name
// latitude: number;
// longitude: number;
// name: string;
// elevation?: number;
// ICAO: string; // "KMWN"
// mindate: string; // "1973-01-01"
// maxdate: string; // "1973-01-01" || "present",
// isdID: string; // "72613014755,72613099999",
// ghcndID: string; // "USW00014755"
// ranges?: IWeatherStationRange[];
// }
interface IWeatherStation {
latitude: number;
longitude: number;
name: string;
elevation?: number;
ICAO: string; // "KMWN"
mindate: string; // "1973-01-01"
maxdate: string; // "1973-01-01" || "present",
isdID: string; // "72613014755,72613099999",
ghcndID: string; // "USW00014755"
ranges?: IWeatherStationRange[];
elevation: number;
mindate: string;
maxdate: string;
ghcndID: string;
datacoverage: number;
elevationUnit: string;
ranges: Array<any>; // Specify the correct type instead of any if possible
country?: string; // Marking as optional
state?: string; // Marking as optional
ICAO?: string; // Marking as optional
isdID?: string; // Marking as optional
}

interface IWeatherStationRange {

Check warning on line 107 in src/types.ts

View workflow job for this annotation

GitHub Actions / Build & Run Tests

'IWeatherStationRange' is defined but never used

Check warning on line 107 in src/types.ts

View workflow job for this annotation

GitHub Actions / Build & Run Tests

'IWeatherStationRange' is defined but never used
Expand Down

0 comments on commit 6bb1baa

Please sign in to comment.