@types/all-the-cities
TypeScript icon, indicating that this package has built-in type declarations

3.1.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/all-the-cities

Weekly Downloads

2,281

Version

3.1.3

License

MIT

Unpacked Size

4.03 kB

Total Files

5

Last publish

Collaborators

  • types