GermanAddressFields型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The fields an address in Germany fills beside the shared ones. The shared fields keep their meaning: street is the
whole name of the street as written (Hauptstraße, Berliner Str., Am Markt), number the house number with its
letter (12a) or range (12-14), secUnitType and secUnitNum a flat (Wohnung 12), a box (Postfach 12 34 56) or
a Packstation, floorType and floor a floor (OG and 2), building a wing, a house or a name (Hinterhaus,
Haus B), locality the Ortsteil, city the place, state the Land's code and zip the postcode.
インポート
import type { GermanAddressFields } from "@johnmorrisdotca/address-plus/de";
ほかのエクスポート元: @johnmorrisdotca/address-plus
定義
interface GermanAddressFields {
careOf?: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
careOf (省略可) | string | undefined |
例
import { parseGermanAddress } from "@johnmorrisdotca/address-plus/de";
import type { GermanAddressFields } from "@johnmorrisdotca/address-plus/de";
console.log(parseGermanAddress("c/o Weber, Hauptstraße 12a, 10115 Berlin")?.careOf);
// → "Weber"Weber出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。