UNPKG

@mugan86/openweather-api

Version:
56 lines (55 loc) 940 B
/** * Location coordinates interface with lon and lat properties */ export interface Coord { lon: number; lat: number; } /** * Take weather information properties definition */ export interface Weather { id: number; main: string; description: string; icon: string; } /** * @ignore */ export interface Main { temp: number; pressure: number; humidity: number; temp_min: number; temp_max: number; } export interface Wind { speed: number; deg: number; } export interface Clouds { all: number; } export interface Sys { type: number; id: number; message: number; country: string; sunrise: number; sunset: number; } export interface Result { coord: Coord; weather: Weather[]; base: string; main: Main; visibility: number; wind: Wind; clouds: Clouds; dt: number; sys: Sys; id: number; name: string; cod: number; }