mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Uncovered by dtslint 0.5.4, which now requires that definitions cannot be by "My Self", which is the default from dts-gen.
40 lines
977 B
TypeScript
40 lines
977 B
TypeScript
// Type definitions for provinces 1.11
|
|
// Project: https://github.com/substack/provinces
|
|
// Definitions by: William Lohan <https://github.com/gatimus>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
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;
|
|
/**
|
|
* optional array of additional names and abbreviations
|
|
*/
|
|
alt?: string[];
|
|
/**
|
|
* optional region of a country (for example: "Wales")
|
|
*/
|
|
region?: string;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @see {@link https://github.com/substack/provinces#methods}
|
|
*/
|
|
declare const provinces: Province[];
|
|
|
|
export = provinces;
|