import type { Continent } from "./continents" ; import continents from "./continents" ; import type { Country } from "./countries" ; import countries from "./countries" ; const countryCodes = [ ... countries . map ( ( country ) => country . code ) ] as const ; const countryNames = [ ... countries . map ( ( country ) => country . name ) ] as const ; type CountryCode = typeof countryCodes [ number ] | "unknown" ; type CountryName = typeof countryNames [ number ] | "unknown" ; export { countries , continents , countryCodes , countryNames } ; export type { CountryCode , CountryName , Country , Continent } ;