@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
18 lines (17 loc) • 936 B
TypeScript
import { ParsedElement } from '../../elements/parsed-element';
import { ParsedElementType } from '../utilities';
import { PathElementOptions, PathElementMixin } from './path-element.mixin';
import { RequiredElementOptions, RequiredElementMixin } from './required-element.mixin';
export interface ChildElementOptions extends RequiredElementOptions, PathElementOptions {
tag?: string;
}
export interface ChildElementMixin<Child extends ParsedElement> extends RequiredElementMixin, PathElementMixin {
}
export declare class ChildElementMixin<Child extends ParsedElement> {
readonly elementTypeOrFunction: ParsedElementType<Child> | (() => ParsedElementType<Child>) | null;
readonly options: any;
constructor(elementTypeOrFunction: ParsedElementType<Child> | (() => ParsedElementType<Child>) | null, options?: any);
get elementType(): ParsedElementType<Child> | null;
get tag(): string;
get hasTag(): boolean;
}