UNPKG

737 BTypeScriptView Raw
1import { AddressRecord } from "uk-clear-addressing";
2interface FormattedAddress {
3 premise: string;
4 line_1: string;
5 line_2: string;
6 line_3: string;
7 post_town: string;
8 postcode: string;
9}
10interface AddressQuery {
11 building_name: string;
12 building_number: string;
13 sub_building_name: string;
14 dependant_locality: string;
15 double_dependant_locality: string;
16 thoroughfare: string;
17 dependant_thoroughfare: string;
18 po_box: string;
19 post_town: string;
20 postcode: string;
21 department_name: string;
22 organisation_name: string;
23}
24interface Response {
25 query: AddressQuery;
26 formatted: FormattedAddress;
27}
28export declare const parse: (body: AddressRecord) => Response;
29export {};