UNPKG

@clregions/data

Version:

Paquete de datos para regiones de Chile, proporcionando acceso a información estructurada en formato JSON, CSV y SQL

34 lines (31 loc) • 751 B
import { CommuneId, ProvinceId, RegionId } from '../types/index.cjs'; type CLCommuneObject = { id: CommuneId; name: string; }; type CLProvinceObject = { id: ProvinceId; name: string; communes: { [key: string]: CLCommuneObject; }; }; type CLRegionObject = { id: RegionId; name: string; shortName: string; abbreviation: string; isoCode: string; provinces: { [key: string]: CLProvinceObject; }; }; type CLCountryObject = { country: 'Chile'; countryCode: 'CL'; regions: { [key: string]: CLRegionObject; }; }; declare const clRegions: CLCountryObject; export { type CLCommuneObject, type CLCountryObject, type CLProvinceObject, type CLRegionObject, clRegions };