typed-usa-states
Version:
An array of geographical data for all USA states with full TypeScript support
26 lines (25 loc) • 595 B
TypeScript
export declare type IUSAZipCode = string;
export declare type IUSAZipCodeRange = [IUSAZipCode, IUSAZipCode];
export interface IUSAStateArea {
year: number;
value: number;
}
export interface IUSAStatePopulation {
year: number;
count: number;
}
export interface IUSAState {
name: string;
abbreviation: string;
territory: boolean;
capital: string;
contiguous: boolean;
zipCodes?: IUSAZipCodeRange[];
area?: IUSAStateArea;
population?: IUSAStatePopulation;
counties?: string[];
}
export interface IUSACity {
name: string;
state: string;
}