Skip to main content
getWeatherData(query, lang): Promise<Result<Weather, Identifiers, boolean>>
Defined in: weather.ts:76 Retrieves weather data for a given query and language.

Parameters

query

string The query string for the weather data.

lang

string The language code for the weather data.

Returns

Promise<Result<Weather, Identifiers, boolean>> A promise that resolves to a Result object containing either the weather data or an error identifier.