Skip to content

Commit

Permalink
type: export Country type. (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 13, 2022
1 parent 6090903 commit b97fffe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ declare module 'province-city-china' {
export type Area = ProvinceCityChina.Area;
export type Town = ProvinceCityChina.Town;
export type Level = ProvinceCityChina.Level;
export type Country = ProvinceCityChina.Country;
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[];
Expand All @@ -262,5 +263,6 @@ declare module '@province-city-china/types' {
export type Area = ProvinceCityChina.Area;
export type Town = ProvinceCityChina.Town;
export type Level = ProvinceCityChina.Level;
export type Country = ProvinceCityChina.Country;
export default ProvinceCityChina
}

0 comments on commit b97fffe

Please sign in to comment.