UNPKG

usps-webtools-promise

Version:

API wrapper for the USPS Web-Tools, with Promises!

28 lines (27 loc) 722 B
import type { Address, ErrorResponse } from "../usps.js"; import type USPSClass from "../usps.js"; export interface ZipCodeLookupRequest { Address: { Address1?: string; Address2?: string; City?: string; FirmName?: string; State?: string; Zip4?: string; Zip5?: string; }; } export interface ZipCodeLookupResponse { Address?: { Address1?: string; Address2?: string; City?: string; FirmName?: string; State?: string; Urbanization?: string; Zip4?: string; Zip5?: string; }; Error?: ErrorResponse; } export default function (this: USPSClass, address: Address): Promise<Address | Error>;