FrenchCollectivity型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
An overseas collectivity of France in the tables: its code (987), the ISO 3166-1 country code an address in it
reads as (PF) and its name.
インポート
import type { FrenchCollectivity } from "@johnmorrisdotca/address-plus/fr";
ほかのエクスポート元: @johnmorrisdotca/address-plus
定義
interface FrenchCollectivity {
code: string;
country: FrenchPostalCountry;
name: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
code | string | |
country | FrenchPostalCountry | |
name | string |
例
import { FR_COLLECTIVITIES } from "@johnmorrisdotca/address-plus/fr";
import type { FrenchCollectivity } from "@johnmorrisdotca/address-plus/fr";
console.log(FR_COLLECTIVITIES.find((one) => one.code === "988"));
// → {"code":"988","country":"NC","name":"Nouvelle-Calédonie"}{ code: '988', country: 'NC', name: 'Nouvelle-Calédonie' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。