From 07fe53d65099a0535dff6d61b66490f65c47aacc Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Wed, 12 Oct 2022 21:10:01 +0800 Subject: [PATCH] fix: Fix duplicate type error. (#40) --- packages/core/index.d.ts | 9 --------- packages/core/package.json | 3 ++- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/core/index.d.ts b/packages/core/index.d.ts index 14498314..beaed77d 100644 --- a/packages/core/index.d.ts +++ b/packages/core/index.d.ts @@ -1,14 +1,5 @@ /// -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[]; diff --git a/packages/core/package.json b/packages/core/package.json index d1a8b971..d30f88b8 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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",