-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from hyubs/develop
v1.1.1
- Loading branch information
Showing
11 changed files
with
201 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
declare interface ISO3166CitiesMunicipality { | ||
name: string; | ||
fullName: string; | ||
altName?: string; | ||
province: string; | ||
classification: 'Mun' | 'CC' | 'ICC' | 'HUC'; | ||
isCapital: boolean; | ||
} | ||
|
||
declare interface ISO3166Province { | ||
code: string; | ||
name: string; | ||
altName?: string; | ||
nameTL: string; | ||
region: string; | ||
} | ||
|
||
declare interface ISO3166Region { | ||
code: string; | ||
name: string; | ||
altName?: string; | ||
nameTL: string; | ||
} | ||
|
||
declare interface PSGCCitiesMunicipality { | ||
code: string; | ||
name: string; | ||
fullName: string; | ||
altName?: string; | ||
province: string; | ||
classification: 'MUNICIPALITY' | 'CITY'; | ||
isCapital: boolean; | ||
} | ||
|
||
declare interface PSGCProvince { | ||
code: string; | ||
name: string; | ||
altName?: string; | ||
region: string; | ||
} | ||
|
||
declare interface PSGCRegion { | ||
code: string; | ||
name: string; | ||
altName?: string; | ||
} | ||
|
||
declare module 'ph-locations' { | ||
export var citiesMunicipalities: ISO3166CitiesMunicipality[]; | ||
export var provinces: ISO3166Province[]; | ||
export var regions: ISO3166Region[]; | ||
export var iso3166: { | ||
citiesMunicipalities: ISO3166CitiesMunicipality[]; | ||
provinces: ISO3166Province[]; | ||
regions: ISO3166Region[]; | ||
}; | ||
export var psgc: { | ||
citiesMunicipalities: PSGCCitiesMunicipality[]; | ||
provinces: PSGCProvince[]; | ||
regions: PSGCRegion[]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* eslint-disable global-require */ | ||
|
||
const iso3166 = { | ||
citiesMunicipalities: require('./json/iso3166/citiesMunicipalities.json'), | ||
provinces: require('./json/iso3166/provinces.json'), | ||
regions: require('./json/iso3166/regions.json'), | ||
}; | ||
|
||
const psgc = { | ||
citiesMunicipalities: require('./json/psgc/citiesMunicipalities.json'), | ||
provinces: require('./json/psgc/provinces.json'), | ||
regions: require('./json/psgc/regions.json'), | ||
}; | ||
|
||
module.exports = { | ||
citiesMunicipalities: iso3166.citiesMunicipalities, | ||
provinces: iso3166.provinces, | ||
regions: iso3166.regions, | ||
iso3166, | ||
psgc, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.