Refactor
This commit is contained in:
1
src/types/index.ts
Normal file
1
src/types/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { type CurrentWeather, type OutlookWeather } from './weather';
|
||||
21
src/types/weather.ts
Normal file
21
src/types/weather.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
export interface CurrentWeather {
|
||||
icon: string;
|
||||
temperature: number;
|
||||
highTemp: number;
|
||||
lowTemp: number;
|
||||
precipitation: string;
|
||||
humidity: number;
|
||||
heatIndex: number;
|
||||
windSpeed: number;
|
||||
windDirection: number;
|
||||
}
|
||||
|
||||
export interface OutlookWeather {
|
||||
name: string;
|
||||
icon: string;
|
||||
isDayTime: boolean;
|
||||
temperature: number;
|
||||
precipitation: number;
|
||||
windSpeed: string;
|
||||
windDirection: string;
|
||||
}
|
||||
Reference in New Issue
Block a user