Reference · Countries and lookup tools
CountriesOptionstype
What countries() may be asked.
Import it
import type { CountriesOptions } from "@johnmorrisdotca/kuni";
Definition
interface CountriesOptions {
order?: CountryOrder;
}
Members
| Name | Type | Description |
|---|---|---|
order (optional) | CountryOrder | undefined | "code" (the default) is alpha-2 order; "en" and "ja" are by name, as |
Examples
import type { CountriesOptions } from "@johnmorrisdotca/kuni";
const value: CountriesOptions = {order:"ja"};
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'order' ]What it prints (run when this page was built)