Reduce length of weatherProvider field in response
This commit is contained in:
3
types.ts
3
types.ts
@@ -55,7 +55,7 @@ export interface WeatherDataForecast {
|
||||
|
||||
export interface BaseWateringData {
|
||||
/** The WeatherProvider that generated this data. */
|
||||
weatherProvider: WeatherProviderId;
|
||||
weatherProvider: WeatherProviderShortId;
|
||||
/** The total precipitation over the window (in inches). */
|
||||
precip: number;
|
||||
}
|
||||
@@ -75,3 +75,4 @@ export interface ZimmermanWateringData extends BaseWateringData {
|
||||
}
|
||||
|
||||
export type WeatherProviderId = "OWM" | "DarkSky" | "local" | "mock" | "WUnderground";
|
||||
export type WeatherProviderShortId = "OWM" | "DS" | "local" | "mock" | "WU";
|
||||
|
||||
Reference in New Issue
Block a user