FrenchDepartment型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A department of France in the tables: its code (75, 2A, 971), its name and its region's, from INSEE's Code
officiel géographique.
インポート
import type { FrenchDepartment } from "@johnmorrisdotca/address-plus/fr";
ほかのエクスポート元: @johnmorrisdotca/address-plus
定義
interface FrenchDepartment {
code: string;
name: string;
region: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
code | string | |
name | string | |
region | string |
例
import { FR_DEPARTMENTS } from "@johnmorrisdotca/address-plus/fr";
import type { FrenchDepartment } from "@johnmorrisdotca/address-plus/fr";
console.log(FR_DEPARTMENTS.find((department) => department.code === "75"));
// → {"code":"75","name":"Paris","region":"Île-de-France"}{ code: '75', name: 'Paris', region: 'Île-de-France' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。