AddressParser型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The shape of the default export: the four parsers parse-address's users call on one object.
インポート
import type { AddressParser } from "@johnmorrisdotca/address-plus";
定義
interface AddressParser {
parseAddress(address: string, options?: ParseOptions): ParsedAddress | null;
parseInformalAddress(address: string, options?: ParseOptions): ParsedAddress | null;
parseIntersection(address: string, options?: ParseOptions): ParsedIntersection | null;
parseLocation(address: string, options?: ParseOptions): ParsedAddress | null;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
parseAddress | (address: string, options?: ParseOptions): ParsedAddress | null | |
parseInformalAddress | (address: string, options?: ParseOptions): ParsedAddress | null | |
parseIntersection | (address: string, options?: ParseOptions): ParsedIntersection | null | |
parseLocation | (address: string, options?: ParseOptions): ParsedAddress | null |
例
import parser from "@johnmorrisdotca/address-plus";
import type { AddressParser } from "@johnmorrisdotca/address-plus";
console.log(Object.keys(parser));
// → ["parseLocation","parseIntersection","parseInformalAddress","parseAddress"][
'parseLocation',
'parseIntersection',
'parseInformalAddress',
'parseAddress'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。