interface AddressValidationResult

Outcome of validateAddress.

Properties

valid: boolean

true when every provided field is mutually consistent.

errors: Partial<Record<AddressField, string>>

A message per field that broke the chain (usually zero or one entry).

optional
match: IExpanded

The dataset row that satisfies every provided field, when valid.

Usage

import { type AddressValidationResult } from ".";