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

1.11.6 • Public • Published

Installation

npm install --save @types/provinces

Summary

This package contains type definitions for provinces (https://github.com/substack/provinces).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/provinces.

index.d.ts

declare global {
    /**
     * @see {@link https://github.com/substack/provinces#data-format}
     */
    interface Province {
        /**
         * full name of the province or state
         */
        name: string;
        /**
         * country abbreviation
         */
        country: string;
        /**
         * optional 2 or 3 character short name
         */
        short?: string | undefined;
        /**
         * optional array of additional names and abbreviations
         */
        alt?: string[] | undefined;
        /**
         * optional region of a country (for example: "Wales")
         */
        region?: string | undefined;
        /**
         * optional English name of a country (for example: "Beijing")
         */
        english?: string | undefined;
    }
}

/**
 * @see {@link https://github.com/substack/provinces#methods}
 */
declare const provinces: Province[];

export = provinces;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/provinces

Weekly Downloads

3,612

Version

1.11.6

License

MIT

Unpacked Size

4.19 kB

Total Files

5

Last publish

Collaborators

  • types