evenietminus
Version:
An abstract layer over openWeatherMap APIs
29 lines (25 loc) • 472 B
text/typescript
import { Unit, CountryCode } from './index'
export interface Settings {
units?: Unit
language?: string
[key: string]: string
}
export interface InitialSettings extends Settings {
apiKey: string
}
export interface Location {
city: {
cityName?: string
state?: string
countryCode?: CountryCode
}
cityId?: number
geoCoordinates: {
latitude?: number
longitude?: number
}
zipcode: {
zipcode?: number
countryCode?: string
}
}