index.d.ts 737 B

123456789101112131415
  1. /// <reference types="@province-city-china/types" />
  2. declare module 'province-city-china/data' {
  3. export const data: ProvinceCityChina.Data[];
  4. export const province: ProvinceCityChina.Province[];
  5. export const city: ProvinceCityChina.City[];
  6. export const area: ProvinceCityChina.Area[];
  7. export const town: ProvinceCityChina.Town[];
  8. export const level: ProvinceCityChina.Level[];
  9. }
  10. export function sortProvince(arr: ProvinceCityChina.Level[], level?: number): ProvinceCityChina.Level[];
  11. export function findCityChild(arr: ProvinceCityChina.Level[], code: string, level?: number): ProvinceCityChina.City[];
  12. export function findAreaChild(arr: ProvinceCityChina.Level[], code: string, level?: number): ProvinceCityChina.Area[];