commerceml-parser
Version:
Parser for CommerceML standard developed by 1c.ru
13 lines (12 loc) • 471 B
TypeScript
import { Counterparty } from 'commerceml-parser-core';
/**
* Converts a single value to the array containing the single value.
* If the value is undefined then returns an empty array.
* @param arrayOrSingleValue A single value or an array.
*/
export declare function convertToArray<T>(arrayOrSingleValue: T): T[];
/**
* Helper method to parse counterparty XML data.
* @param xmlData
*/
export declare function parseCounterpartyXmlData(xmlData: any): Counterparty;