@rxap/xml-parser
Version:
Provides a set of decorators and services for parsing and serializing XML documents into TypeScript classes. It simplifies the process of mapping XML elements and attributes to class properties, handling data validation, and serializing objects back into
15 lines (14 loc) • 926 B
TypeScript
import { RequiredElementOptions, RequiredElementMixin } from './required-element.mixin';
import { DefaultValueElementOptions, DefaultValueElementMixin } from './default-value-element.mixin';
import { ParseValueElementOptions, ParseValueElementMixin } from './parse-value-element.mixin';
import { SerializeValueElementOptions, SerializeValueElementMixin } from './serialize-value-element.mixin';
export interface AttributeElementOptions<Value> extends RequiredElementOptions, DefaultValueElementOptions<Value>, ParseValueElementOptions<Value>, SerializeValueElementOptions<Value> {
attribute: string;
}
export interface AttributeElementMixin<Value> extends RequiredElementMixin, DefaultValueElementMixin<Value>, ParseValueElementMixin<Value>, SerializeValueElementMixin<Value> {
}
export declare class AttributeElementMixin<Value> {
readonly options: any;
constructor(options?: any);
get attribute(): string;
}