Skip to the content

Kuni国

Look up countries, codes, names and subdivisions, load country data on demand and mount a native country card.

Kuni (国) is Japanese for a country. About the name

Contents

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);
null

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kuni 1.19.0.