mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
17 lines
469 B
TypeScript
17 lines
469 B
TypeScript
import * as provinces from 'provinces';
|
|
|
|
provinces.forEach((province: Province) => {
|
|
// https://github.com/substack/provinces#data-format
|
|
let name: string;
|
|
let country: string;
|
|
let short: string;
|
|
let alt: string[];
|
|
let region: string;
|
|
|
|
name = province.name;
|
|
country = province.country;
|
|
short = province.short ? province.short : '';
|
|
alt = province.alt ? province.alt : [];
|
|
region = province.region ? province.region : '';
|
|
});
|