AddressAbbreviations型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What getAddressAbbreviations returns: one map per kind of abbreviation.
インポート
import type { AddressAbbreviations } from "@johnmorrisdotca/address-plus";
定義
interface AddressAbbreviations {
streetTypes: Record<string, string>;
directions: Record<string, string>;
states: Record<string, string>;
provinces: Record<string, string>;
unitTypes: Record<string, string>;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
streetTypes | Record<string, string> | |
directions | Record<string, string> | |
states | Record<string, string> | |
provinces | Record<string, string> | |
unitTypes | Record<string, string> |
例
import { getAddressAbbreviations } from "@johnmorrisdotca/address-plus";
import type { AddressAbbreviations } from "@johnmorrisdotca/address-plus";
console.log(Object.keys(getAddressAbbreviations()));
// → ["streetTypes","directions","states","provinces","unitTypes"][ 'streetTypes', 'directions', 'states', 'provinces', 'unitTypes' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。