import { weather as weather2 } from "https://esm.town/v/marcel/weather?v=4";
export const weather = async (city: string) => {
weather2(city)
.then(({ weather }) => ({
w: weather,
}))
.then(({ w }) =>
w.map((d) => ({
maxTempF: `${d.maxtempF}`,
minTempF: `${d.mintempF}`,
description: d.hourly.map((h) => h.weatherDesc[0].value),
}))
);
};