import { getWeather } from '../../api' ; const weather = async ( args ) : Promise < string > => { const city = args . join ( '+' ) ; if ( ! city ) { return 'Usage: weather [city]. Example: weather casablanca' ; } const weather = await getWeather ( city ) ; return weather ; } ; export default weather ;