CountryNameOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What countryName() may be asked.
インポート
import type { CountryNameOptions } from "@johnmorrisdotca/kuni";
定義
interface CountryNameOptions {
short?: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
short (省略可) | boolean | undefined | The short form where CLDR has one ("UK", アメリカ), the full name otherwise. |
例
import type { CountryNameOptions } from "@johnmorrisdotca/kuni";
const value: CountryNameOptions = {short:true};
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'short' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。