SubRegion型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
An administrative part of a city (a borough, a parish, a ward, an arrondissement) that may be written where the city is expected.
インポート
import type { SubRegion } from "@johnmorrisdotca/address-plus";
定義
interface SubRegion {
name: string;
parentCity: string;
state: string;
country: "US" | "CA";
type: "borough" | "parish" | "district" | "ward" | "arrondissement" | "quadrant";
aliases?: string[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
name | string | |
parentCity | string | |
state | string | |
country | "CA" | "US" | |
type | "arrondissement" | "borough" | "parish" | "district" | "ward" | "quadrant" | |
aliases (省略可) | string[] | undefined |
例
import type { SubRegion } from "@johnmorrisdotca/address-plus";
console.log(({ name: "brooklyn", parentCity: "new york", state: "NY", country: "US", type: "borough" }).type);
// → "borough"borough出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。