NamesNameOptionstype
What countryName() may be asked.
Import it
import type { NamesNameOptions } from "@johnmorrisdotca/kuni/names/fr";
Also exported from: @johnmorrisdotca/kuni/names/es, @johnmorrisdotca/kuni/names/de, @johnmorrisdotca/kuni/names/zh-Hans, @johnmorrisdotca/kuni/names/zh-Hant, @johnmorrisdotca/kuni/names/ko, @johnmorrisdotca/kuni/names/pt, @johnmorrisdotca/kuni/names/ar, @johnmorrisdotca/kuni/names/ru
Definition
interface NamesNameOptions {
short?: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
short (optional) | boolean | undefined | The short form where CLDR has one, the full name otherwise. |
Examples
import type { NamesNameOptions } from "@johnmorrisdotca/kuni/names/fr";
const options: NamesNameOptions = { short: true };
console.log(options.short); // truetrueWhat it prints (run when this page was built)