Reference
/capitals
import { … } from "@johnmorrisdotca/kuni/capitals";
1.0 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
CapitalRole | type | What a capital city is the capital for. |
CAPITALS_READ | constant | The day the capitals' pages were read: every role in capitalsOf is as the country's own government page said on this day. |
capitalsOf | function | The capitals of a country that has more than one capital city, or a capital that capital does not name alone, each with its role: South Africa's Pretoria (administrative), Cape Town (legislative) and Bloemfontein (judicial). |
CountryCapital | type | One capital city of a country that has more than one, or whose capital is not the one capital names alone, from capitalsOf in the /capitals entry. |