Reference · Places: countries of a continent, and search (the size counts every tier)
PlaceHittype
One result of searchPlaces: a country, or a city.
Import it
import type { PlaceHit } from "@johnmorrisdotca/kuni/places";
Definition
type PlaceHit = {
kind: "country";
label: string;
country: Country;
} | {
kind: "city";
label: string;
city: City;
};
Examples
import type { PlaceHit } from "@johnmorrisdotca/kuni/places";
const value: PlaceHit | null = null;
console.log(value);nullWhat it prints (run when this page was built)