DefinitelyTyped/types/provinces/provinces-tests.ts
2017-12-26 12:47:53 -08:00

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 : '';
});