xml-class-transformer
Version:
Fluently parse XML into beautiful JS/TS classes and serialize them. GoLang's encoding/xml alternative for JS/TS world.
22 lines (21 loc) • 623 B
TypeScript
import { Marshaller } from './marshallers';
import { XmlClass, XmlType } from './types';
declare abstract class Fields {
type?: () => XmlType;
marshaller?: Marshaller<unknown>;
union?: () => XmlClass[];
array?: boolean;
name?: string | undefined;
attr?: boolean;
chardata?: boolean;
comments?: boolean;
}
/**
* Used to accumulate the metadatas from all of the property decorators:
* `XmlChildElem`, `XmlAttribute`, `XmlChardata`, `XmlComments`
*/
export declare class InternalXmlPropertyOptions extends Fields {
constructor(init: Fields);
isPrimitiveType(): boolean;
}
export {};