More typing and fixes

This commit is contained in:
Sean Edmunds
2025-04-25 15:02:00 -05:00
parent 74893ac68d
commit b280909ec9
31 changed files with 230 additions and 110 deletions

View File

@@ -1,5 +1,5 @@
export interface BookmarkGroup {
id: number | undefined;
id: number | null;
categoryName: string;
categoryIndex: number;
filterName: string;

View File

@@ -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';

View File

@@ -5,3 +5,8 @@ export interface SearchHistoryItem {
searchTerm: string;
dateTimeStamp: string;
}
export interface SearchShortcut {
name: string;
command: string;
}

View File

@@ -14,5 +14,5 @@ export interface ThemePlaylist {
id: number | undefined;
name: string;
default: number;
themeList: number[];
themeList: string;
}

View File

@@ -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;
}