UNPKG

x-weather

Version:

A collection of web components implementing portions of the OpenWeatherMap API.

4 lines (2 loc) 166 B
import { CURRENT_WEATHER_UPDATE } from '../../types' export const updateCurrentWeather = ({ json }) => ({ type: CURRENT_WEATHER_UPDATE, payload: JSON.parse(json) })