More typing and fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export interface BookmarkGroup {
|
||||
id: number | undefined;
|
||||
id: number | null;
|
||||
categoryName: string;
|
||||
categoryIndex: number;
|
||||
filterName: string;
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
export type { CurrentWeather, OutlookWeather, ExtendedForecast } from './weather';
|
||||
export type {
|
||||
CurrentWeather,
|
||||
OutlookWeather,
|
||||
ExtendedForecast,
|
||||
HourlyForecast,
|
||||
SunState,
|
||||
} from './weather';
|
||||
export type { Application, AppCategory } from './application';
|
||||
export type { Bookmark } from './bookmark';
|
||||
export type { BookmarkGroup } from './bookmarkGroup';
|
||||
@@ -7,6 +13,6 @@ export type { Message } from './message';
|
||||
export type { Provider } from './provider';
|
||||
export type { Theme, ThemePlaylist } from './theme';
|
||||
export type { WolClient } from './wolClient';
|
||||
export type { SearchHistoryItem } from './searchHistory';
|
||||
export type { SearchHistoryItem, SearchShortcut } from './search';
|
||||
export type { User } from './user';
|
||||
export type { Location } from './location';
|
||||
|
||||
@@ -5,3 +5,8 @@ export interface SearchHistoryItem {
|
||||
searchTerm: string;
|
||||
dateTimeStamp: string;
|
||||
}
|
||||
|
||||
export interface SearchShortcut {
|
||||
name: string;
|
||||
command: string;
|
||||
}
|
||||
@@ -14,5 +14,5 @@ export interface ThemePlaylist {
|
||||
id: number | undefined;
|
||||
name: string;
|
||||
default: number;
|
||||
themeList: number[];
|
||||
themeList: string;
|
||||
}
|
||||
|
||||
@@ -31,3 +31,43 @@ export interface ExtendedForecast {
|
||||
temperature: number;
|
||||
temperatureUnit: string;
|
||||
}
|
||||
|
||||
export interface HourlyForecast {
|
||||
detailedForecast: string;
|
||||
dewpoint: DewPoint;
|
||||
endTime: string;
|
||||
icon: string;
|
||||
isDaytime: boolean;
|
||||
name: string;
|
||||
number: number;
|
||||
probabilityOfPrecipitation: ProbabilityOfPrecipitation;
|
||||
relativeHumidity: RelativeHumidity;
|
||||
shortForecast: string;
|
||||
startTime: string;
|
||||
temperature: number;
|
||||
temperatureTrend: string;
|
||||
temperatureUnit: string;
|
||||
windDirection: string;
|
||||
windSpeed: string;
|
||||
}
|
||||
|
||||
export interface ProbabilityOfPrecipitation {
|
||||
unitCode: string;
|
||||
value: number;
|
||||
}
|
||||
|
||||
export interface RelativeHumidity {
|
||||
unitCode: string;
|
||||
value: number;
|
||||
}
|
||||
|
||||
export interface DewPoint {
|
||||
unitCode: string;
|
||||
value: number;
|
||||
}
|
||||
|
||||
export interface SunState {
|
||||
date: string;
|
||||
sunrise: string;
|
||||
sunset: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user