evenietminus
Version:
An abstract layer over openWeatherMap APIs
29 lines (28 loc) • 688 B
TypeScript
import { CountryCode, QueryType } from './index';
export interface SetCurrentWeatherByCityName {
cityName: string;
state?: string;
countryCode?: CountryCode;
}
export interface IQueryType {
queryType: QueryType;
}
export interface GetByCityName extends IQueryType {
location?: {
cityName?: string;
state?: string;
countryCode?: CountryCode;
};
}
export interface GetByCityId extends IQueryType {
cityId?: number;
}
export interface GetByGeoCoordinates extends IQueryType {
latitude?: number;
longitude?: number;
}
export interface GetByCityNameChild {
cityName?: string;
state?: string;
countryCode?: CountryCode;
}