Reference · Countries and lookup tools
Continenttype
A continent's two letters: "AF", "AN", "AS", "EU", "NA", "OC" or "SA".
Import it
import type { Continent } from "@johnmorrisdotca/kuni";
Definition
type Continent = (typeof CONTINENTS)[number];
Examples
import type { Continent } from "@johnmorrisdotca/kuni";
import { CONTINENTS } from "@johnmorrisdotca/kuni";
const value: Continent = CONTINENTS[0];
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);AFWhat it prints (run when this page was built)