PlaceCountry型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A country from the outlines. code is the ISO 3166-1 alpha-2 code, or null where the outline has none.
インポート
import type { PlaceCountry } from "@johnmorrisdotca/chikyu-earth/place";
定義
interface PlaceCountry {
code: string | null;
name: string;
nameJa: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
code | string | null | |
name | string | |
nameJa | string |
例
import type { PlaceCountry } from "@johnmorrisdotca/chikyu-earth/place";
const japan: PlaceCountry = { code: "JP", name: "Japan", nameJa: "日本" };
console.log(japan.code);JP出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。