Skip to content

Commit

Permalink
fix: Fix duplicate type error. (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 12, 2022
1 parent 1ef4315 commit 07fe53d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
9 changes: 0 additions & 9 deletions packages/core/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
/// <reference types="@province-city-china/types" />

declare module 'province-city-china/data' {
export const data: ProvinceCityChina.Data[];
export const province: ProvinceCityChina.Province[];
export const city: ProvinceCityChina.City[];
export const area: ProvinceCityChina.Area[];
export const town: ProvinceCityChina.Town[];
export const level: ProvinceCityChina.Level[];
}

export function sortProvince(arr: ProvinceCityChina.Level[], level?: number): ProvinceCityChina.Level[];
export function findCityChild(arr: ProvinceCityChina.Level[], code: string, level?: number): ProvinceCityChina.City[];
export function findAreaChild(arr: ProvinceCityChina.Level[], code: string, level?: number): ProvinceCityChina.Area[];
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "province-city-china",
"version": "8.5.0",
"description": "An util to query china province, city and district data. 中华人民共和国国家标准 GB/T 2260 行政区划代码。",
"main": "index.js",
"main": "./index.js",
"typings": "./index.d.ts",
"scripts": {
"①": "------------获取<省市区>数据---------------------------",
"get": "node script/province.js",
Expand Down

0 comments on commit 07fe53d

Please sign in to comment.