Repository URL to install this package:
|
Version:
2.8.0-studio-release ▾
|
export interface AddressType {
firstName?: string;
lastName?: string;
addressLine1?: string;
addressLine2?: string;
city?: string;
country?: string;
state?: string;
postalCode?: string;
}
declare function fromAddressToString(shippingAddress: AddressType): string;
declare function fromStringToAddress(value?: string): {
firstName: string;
lastName: string;
addressLine1: string;
addressLine2: string;
city: string;
state: string;
country: string;
postalCode: string;
telephone: string;
email: string;
address1?: undefined;
} | {
address1: string;
firstName?: undefined;
lastName?: undefined;
addressLine1?: undefined;
addressLine2?: undefined;
city?: undefined;
state?: undefined;
country?: undefined;
postalCode?: undefined;
telephone?: undefined;
email?: undefined;
};
declare function fromStringToArray(value: string): false | string[];
export { fromAddressToString, fromStringToAddress, fromStringToArray };