Files
homarr/packages/old-import/src/widgets/definitions/weather.ts
T
Yossi Hillali c51c5db3d7 feat: date format on weather widget (#1443)
* feat: date format on weather widget

* fix: type check error

* fix: reviewed changes

* fix: reviewed changes
2024-11-08 11:33:03 +02:00

27 lines
552 B
TypeScript

import type { CommonOldmarrWidgetDefinition } from "./common";
export type OldmarrWeatherDefinition = CommonOldmarrWidgetDefinition<
"weather",
{
displayInFahrenheit: boolean;
displayCityName: boolean;
displayWeekly: boolean;
forecastDays: number;
location: {
name: string;
latitude: number;
longitude: number;
};
dateFormat:
| "hide"
| "dddd, MMMM D"
| "dddd, D MMMM"
| "MMM D"
| "D MMM"
| "DD/MM/YYYY"
| "MM/DD/YYYY"
| "DD/MM"
| "MM/DD";
}
>;