Installation
npm install --save @types/all-the-cities
Summary
This package contains type definitions for all-the-cities (https://github.com/zeke/all-the-cities#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/all-the-cities.
index.d.ts
export = all_the_cities;
interface AllTheCitiesCity {
cityId: number;
name: string;
altName: string;
country: string;
adminCode: string;
population: number;
featureCode:
| "PPL"
| "PPLA"
| "PPLC"
| "PPLA2"
| "PPLW"
| "PPLA3"
| "PPLX"
| "PPLA4"
| "PPLL"
| "PPLS"
| "PPLQ"
| "PPLF"
| "PPLG"
| "PPLH"
| "PPLCH"
| "PPLA5"
| "PPLR"
| "STLMT";
loc: {
type: "Point";
coordinates: [number, number];
};
}
declare const all_the_cities: AllTheCitiesCity[];
declare namespace all_the_cities {
type City = AllTheCitiesCity;
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: none
Credits
These definitions were written by Emily Marigold Klassen.