12 lines
342 B
TypeScript
12 lines
342 B
TypeScript
import { DataManager } from "../base/manager";
|
|
import { WeatherLocationList } from "./component";
|
|
import { Location } from "./model";
|
|
|
|
declare global {
|
|
interface Window {
|
|
weatherLocationManager: DataManager<Location>;
|
|
}
|
|
}
|
|
|
|
window.weatherLocationManager = new DataManager(WeatherLocationList, "weather:locations", "#storedLocations");
|