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 .