evenietminus
Version:
An abstract layer over openWeatherMap APIs
26 lines (25 loc) • 535 B
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;
};
}