BatchParseError型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One address a batch could not parse: its index, the input and the reason.
インポート
import type { BatchParseError } from "@johnmorrisdotca/address-plus";
定義
interface BatchParseError {
index: number;
error: string;
input: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
index | number | |
error | string | |
input | string |
例
import { parseLocationsBatch } from "@johnmorrisdotca/address-plus";
import type { BatchParseError } from "@johnmorrisdotca/address-plus";
console.log(parseLocationsBatch([""]).errors[0].index);
// → 00出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。