UNPKG

usps-webtools-promise

Version:

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

17 lines (16 loc) 449 B
import type USPSClass from "../usps.js"; import type { ErrorResponse } from "../usps.js"; export interface CityStateLookupRequest { ZipCode: { Zip5: string; }; } export interface CityStateLookupResponse { Error?: ErrorResponse; ZipCode?: { City: string; State: string; Zip5: string; }; } export default function (this: USPSClass, zip: string): Promise<CityStateLookupResponse["ZipCode"] | Error>;