Skip to main content
getWeatherName(code): WeatherName
Defined in: weather.ts:64 Retrieves the name of the weather based on the provided weather code.

Parameters

code

WeatherCode The weather code.

Returns

WeatherName The name of the weather.

Throws

Error if the provided code is not available.