Region型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A US state or Canadian province: its code, its country and its name, as normalizeRegion matches them.
インポート
import type { Region } from "@johnmorrisdotca/address-plus";
定義
type Region = {
abbr: string;
country: "CA" | "US";
name: string;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
abbr | string | |
country | "CA" | "US" | |
name | string |
例
import { CA_REGIONS } from "@johnmorrisdotca/address-plus";
import type { Region } from "@johnmorrisdotca/address-plus";
console.log(CA_REGIONS[0]);
// → {"abbr":"AB","country":"CA","name":"alberta"}{ abbr: 'AB', country: 'CA', name: 'alberta' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。