UNPKG

@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

17 lines 614 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SerializeValueElementMixin = void 0; const serialize_value_1 = require("../../serialize-value"); class SerializeValueElementMixin { constructor(options = {}) { this.options = options; } serializeValue(value) { if (this.options.serializeValue) { return this.options.serializeValue(value); } return (0, serialize_value_1.serializeValue)(value); } } exports.SerializeValueElementMixin = SerializeValueElementMixin; //# sourceMappingURL=serialize-value-element.mixin.js.map