Files
DefinitelyTyped/types/provinces/index.d.ts
2017-12-26 12:47:53 -08:00

40 lines
971 B
TypeScript

// Type definitions for provinces 1.11
// Project: https://github.com/substack/provinces
// Definitions by: My Self <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;