Reference · Parsing, formatting and shared types
BatchParseErrortype
One address a batch could not parse: its index, the input and the reason.
Import it
import type { BatchParseError } from "@johnmorrisdotca/address-plus";
Definition
interface BatchParseError {
index: number;
error: string;
input: string;
}
Members
| Name | Type | Description |
|---|---|---|
index | number | |
error | string | |
input | string |
Examples
import { parseLocationsBatch } from "@johnmorrisdotca/address-plus";
import type { BatchParseError } from "@johnmorrisdotca/address-plus";
console.log(parseLocationsBatch([""]).errors[0].index);
// → 00What it prints (run when this page was built)