xml-model 0.1.2 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/main/defaults/index.js +22 -16
  2. package/build/main/defaults/models.js +4 -4
  3. package/build/main/errors.d.ts +4 -0
  4. package/build/main/errors.js +35 -0
  5. package/build/main/middleware.js +11 -11
  6. package/build/main/model/index.d.ts +7 -9
  7. package/build/main/model/index.js +88 -67
  8. package/build/main/model/property.js +16 -14
  9. package/build/main/model/types.d.ts +5 -1
  10. package/build/main/model/types.js +86 -70
  11. package/build/main/types.d.ts +10 -2
  12. package/build/main/types.js +34 -1
  13. package/build/{module/xml.d.ts → main/xml/index.d.ts} +5 -4
  14. package/build/main/{xml.js → xml/index.js} +29 -19
  15. package/build/main/xml/xml-js.d.ts +9 -0
  16. package/build/main/xml/xml-js.js +26 -0
  17. package/build/module/defaults/index.js +24 -17
  18. package/build/module/defaults/models.js +6 -10
  19. package/build/module/errors.d.ts +4 -0
  20. package/build/module/errors.js +31 -0
  21. package/build/module/middleware.js +11 -11
  22. package/build/module/model/index.d.ts +7 -9
  23. package/build/module/model/index.js +97 -74
  24. package/build/module/model/property.js +18 -16
  25. package/build/module/model/types.d.ts +5 -1
  26. package/build/module/model/types.js +88 -72
  27. package/build/module/types.d.ts +10 -2
  28. package/build/module/types.js +33 -2
  29. package/build/{main/xml.d.ts → module/xml/index.d.ts} +5 -4
  30. package/build/module/{xml.js → xml/index.js} +26 -18
  31. package/build/module/xml/xml-js.d.ts +9 -0
  32. package/build/module/xml/xml-js.js +24 -0
  33. package/package.json +2 -2
  34. package/build/main/model.spec.d.ts +0 -1
  35. package/build/main/model.spec.js +0 -261
  36. package/build/module/model.spec.d.ts +0 -1
  37. package/build/module/model.spec.js +0 -259
@@ -16,14 +16,14 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
16
16
  __RΦ.t[id] = t = l;
17
17
  }
18
18
  return t;
19
- }, t: { [190]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(187), p: [__RΦ.a(182)] }) }, [187]: { LΦ: t => require("typescript-rtti/dist").IΦConstructor }, [182]: { LΦ: t => Object }, [186]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(183), p: [__RΦ.a(182)] }) }, [183]: { LΦ: t => require("./types").IΦCreateXMLModelPropertyOptions }, [198]: { LΦ: t => Object }, [202]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(199), p: [__RΦ.a(182)] }) }, [199]: { LΦ: t => require("./types").IΦXMLModelPropertyOptions }, [482]: { LΦ: t => require("typescript-rtti/dist").ReflectedProperty }, [13]: { LΦ: t => String }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [20]: { LΦ: t => Boolean }, [92]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(91) }) }, [91]: { LΦ: t => require("xml-js/types").IΦElement }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [93]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(92) }] }) }, [762]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(187), p: [__RΦ.a(761)] }) }, [761]: { LΦ: t => Object }, [764]: { LΦ: t => Object }, [765]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(199), p: [__RΦ.a(761)] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [926]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(187), p: [__RΦ.a(925)] }) }, [925]: { LΦ: t => Object }, [928]: { LΦ: t => Object }, [937]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(929)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [929]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(199), p: [__RΦ.a(925)] }) }, [943]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(187), p: [__RΦ.a(942)] }) }, [942]: { LΦ: t => Object }, [945]: { LΦ: t => Object }, [969]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(199), p: [__RΦ.a(942)] }) }, [976]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(183), p: [__RΦ.a(975)] }) }, [975]: { LΦ: t => Object }, [978]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(980), v: null }], f: "" }) }, [980]: { LΦ: t => Object } } };
19
+ }, t: { [203]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(195)] }) }, [200]: { LΦ: t => require("typescript-rtti/dist").IΦConstructor }, [195]: { LΦ: t => Object }, [199]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(196), p: [__RΦ.a(195)] }) }, [196]: { LΦ: t => require("./types").IΦCreateXMLModelPropertyOptions }, [211]: { LΦ: t => Object }, [215]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(195)] }) }, [212]: { LΦ: t => require("./types").IΦXMLModelPropertyOptions }, [495]: { LΦ: t => require("typescript-rtti/dist").ReflectedProperty }, [13]: { LΦ: t => String }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [20]: { LΦ: t => Boolean }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => require("../types").IΦXMLElement }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [1405]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1404)] }) }, [1404]: { LΦ: t => Object }, [1407]: { LΦ: t => Object }, [1408]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1404)] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [1420]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1419)] }) }, [1419]: { LΦ: t => Object }, [1422]: { LΦ: t => Object }, [1431]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1423)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [1423]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1419)] }) }, [1437]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1436)] }) }, [1436]: { LΦ: t => Object }, [1439]: { LΦ: t => Object }, [1463]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1436)] }) }, [1470]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(196), p: [__RΦ.a(1469)] }) }, [1469]: { LΦ: t => Object }, [1472]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(1474), v: null }], f: "" }) }, [1474]: { LΦ: t => Object } } };
20
20
  const typescript_rtti_1 = require("typescript-rtti");
21
21
  const defaults_1 = require("../defaults");
22
22
  function resolvePropertyConversionOptions(options, constructor, property) {
23
23
  const _options = {
24
24
  name: property,
25
25
  get reflected() {
26
- return (0, typescript_rtti_1.reflect)(constructor, { TΦ: "c", t: void 0, p: [__RΦ.a(190)], r: void 0, tp: [] }).getProperty(property);
26
+ return (0, typescript_rtti_1.reflect)(constructor, { TΦ: "c", t: void 0, p: [__RΦ.a(203)], r: void 0, tp: [] }).getProperty(property);
27
27
  },
28
28
  get tagname() {
29
29
  return options.tagname || defaults_1.defaults.tagnameFromProperty(this);
@@ -33,10 +33,12 @@ function resolvePropertyConversionOptions(options, constructor, property) {
33
33
  isSourceElement: __RΦ.f((...args) => defaults_1.defaults.propertySourceElementsFilter(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "isSourceElement"),
34
34
  resolveElements: options.resolveElements
35
35
  ? options.resolveElements
36
- : __RΦ.f((...args) => defaults_1.defaults.propertyResolveSourceElements(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(92))], ""),
36
+ : __RΦ.f((...args) => defaults_1.defaults.propertyResolveSourceElements(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(105))], ""),
37
37
  fromXML: __RΦ.f((context) => (options.fromXML || defaults_1.defaults.propertyFromXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1))], "fromXML"),
38
- toXML: __RΦ.f((context) => (options.toXML || defaults_1.defaults.propertyToXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(93))], "toXML"),
38
+ toXML: __RΦ.f((context) => (options.toXML || defaults_1.defaults.propertyToXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(109))], "toXML"),
39
39
  };
40
+ if (options === null || options === void 0 ? void 0 : options.model)
41
+ _options.model = options.model;
40
42
  if (options === null || options === void 0 ? void 0 : options.sourceElements) {
41
43
  const _sourceElements = options.sourceElements;
42
44
  if (typeof _sourceElements === "string") {
@@ -51,9 +53,9 @@ function resolvePropertyConversionOptions(options, constructor, property) {
51
53
  }
52
54
  return _options;
53
55
  }
54
- __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(186), v: null }, { n: "constructor", t: () => __RΦ.a(190), v: null }, { n: "property", t: () => __RΦ.a(198), v: null }])(resolvePropertyConversionOptions);
56
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(199), v: null }, { n: "constructor", t: () => __RΦ.a(203), v: null }, { n: "property", t: () => __RΦ.a(211), v: null }])(resolvePropertyConversionOptions);
55
57
  __RΦ.m("rt:f", "F")(resolvePropertyConversionOptions);
56
- __RΦ.m("rt:t", () => __RΦ.a(202))(resolvePropertyConversionOptions);
58
+ __RΦ.m("rt:t", () => __RΦ.a(215))(resolvePropertyConversionOptions);
57
59
  const PropertyOptions = new Map();
58
60
  function storePropertyConversionOptions(constructor, property, options) {
59
61
  let map = PropertyOptions.get(constructor);
@@ -63,7 +65,7 @@ function storePropertyConversionOptions(constructor, property, options) {
63
65
  }
64
66
  map.set(property, options);
65
67
  }
66
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(762), v: null }, { n: "property", t: () => __RΦ.a(764), v: null }, { n: "options", t: () => __RΦ.a(765), v: null }])(storePropertyConversionOptions);
68
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1405), v: null }, { n: "property", t: () => __RΦ.a(1407), v: null }, { n: "options", t: () => __RΦ.a(1408), v: null }])(storePropertyConversionOptions);
67
69
  __RΦ.m("rt:f", "F")(storePropertyConversionOptions);
68
70
  __RΦ.m("rt:t", () => __RΦ.a(22))(storePropertyConversionOptions);
69
71
  function findPropertyConversionOptions(constructor, property) {
@@ -72,24 +74,24 @@ function findPropertyConversionOptions(constructor, property) {
72
74
  return options.get(property);
73
75
  }
74
76
  }
75
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(926), v: null }, { n: "property", t: () => __RΦ.a(928), v: null }])(findPropertyConversionOptions);
77
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1420), v: null }, { n: "property", t: () => __RΦ.a(1422), v: null }])(findPropertyConversionOptions);
76
78
  __RΦ.m("rt:f", "F")(findPropertyConversionOptions);
77
- __RΦ.m("rt:t", () => __RΦ.a(937))(findPropertyConversionOptions);
79
+ __RΦ.m("rt:t", () => __RΦ.a(1431))(findPropertyConversionOptions);
78
80
  function getPropertyConversionOptions(constructor, property) {
79
81
  const options = findPropertyConversionOptions(constructor, property);
80
82
  return options || resolvePropertyConversionOptions({}, constructor, property);
81
83
  }
82
84
  exports.getPropertyConversionOptions = getPropertyConversionOptions;
83
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(943), v: null }, { n: "property", t: () => __RΦ.a(945), v: null }])(getPropertyConversionOptions);
85
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1437), v: null }, { n: "property", t: () => __RΦ.a(1439), v: null }])(getPropertyConversionOptions);
84
86
  __RΦ.m("rt:f", "F")(getPropertyConversionOptions);
85
- __RΦ.m("rt:t", () => __RΦ.a(969))(getPropertyConversionOptions);
87
+ __RΦ.m("rt:t", () => __RΦ.a(1463))(getPropertyConversionOptions);
86
88
  function PropDecoratorFactory(options) {
87
89
  return __RΦ.f(function (prototype, property) {
88
90
  const _options = resolvePropertyConversionOptions(options || {}, prototype.constructor, property);
89
91
  storePropertyConversionOptions(prototype.constructor, property, _options);
90
- }, [__RΦ.m("rt:p", [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(980), v: null }]), __RΦ.m("rt:f", "M."), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
92
+ }, [__RΦ.m("rt:p", [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(1474), v: null }]), __RΦ.m("rt:f", "M."), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
91
93
  }
92
94
  exports.Prop = PropDecoratorFactory;
93
- __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(976), v: null, f: "?" }])(PropDecoratorFactory);
95
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1470), v: null, f: "?" }])(PropDecoratorFactory);
94
96
  __RΦ.m("rt:f", "F")(PropDecoratorFactory);
95
- __RΦ.m("rt:t", () => __RΦ.a(978))(PropDecoratorFactory);
97
+ __RΦ.m("rt:t", () => __RΦ.a(1472))(PropDecoratorFactory);
@@ -23,6 +23,7 @@ export interface XMLModelPropertyOptions<T> {
23
23
  tagname: string;
24
24
  ignored: boolean;
25
25
  inline: boolean;
26
+ model?: XMLModel<any>;
26
27
  isSourceElement: (element: XMLElement, context: Omit<PropertyFromXMLContext<T>, "elements">) => boolean;
27
28
  resolveElements: (context: Omit<PropertyFromXMLContext<T>, "elements">) => XMLElement[];
28
29
  fromXML: (context: PropertyFromXMLContext<T>) => T[keyof T];
@@ -36,6 +37,7 @@ export interface CreateXMLModelPropertyOptions<T> {
36
37
  fromXML?: XMLModelPropertyOptions<T>["fromXML"];
37
38
  inline?: boolean;
38
39
  ignore?: boolean;
40
+ model?: XMLModelPropertyOptions<T>["model"];
39
41
  }
40
42
  interface ConversionOptions<C, T> {
41
43
  parent: ConversionOptions<C, T> | null;
@@ -52,6 +54,7 @@ export interface toXMLContext<T> {
52
54
  model: XMLModel<T>;
53
55
  }
54
56
  export interface XMLModelOptions<T> {
57
+ parent?: XMLModel<T>;
55
58
  properties: {
56
59
  fromXML: ConversionOptions<Omit<fromXMLContext<T>, "properties">, PropertiesRecord<T>>;
57
60
  toXML: ConversionOptions<Omit<toXMLContext<T>, "properties">, XMLPropertiesRecord<T>>;
@@ -62,8 +65,9 @@ export interface XMLModelOptions<T> {
62
65
  tagname: string;
63
66
  }
64
67
  export interface CreateXMLModelOptions<T> {
68
+ parent?: XMLModelOptions<T>["parent"];
65
69
  fromXML?: XMLModelOptions<T>["fromXML"]["middlewares"][number];
66
- tagname?: string;
67
70
  toXML?: XMLModelOptions<T>["toXML"]["middlewares"][number];
71
+ tagname?: XMLModelOptions<T>["tagname"];
68
72
  }
69
73
  export { XMLModel };
@@ -16,46 +16,46 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
16
16
  __RΦ.t[id] = t = l;
17
17
  }
18
18
  return t;
19
- }, t: { [696]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(199), p: [__RΦ.a(662)] }) }, [199]: { TΦ: "5", name: "XMLModelPropertyOptions" }, [662]: { LΦ: t => Object }, [700]: { LΦ: t => Object }, [478]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(199), p: [__RΦ.a(360)] }) }, [360]: { LΦ: t => Object }, [92]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(91) }) }, [91]: { LΦ: t => require("xml-js/types").IΦElement }, [481]: { LΦ: t => Object }, [482]: { LΦ: t => require("typescript-rtti").ReflectedProperty }, [13]: { LΦ: t => String }, [20]: { LΦ: t => Boolean }, [342]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(20), p: [{ n: "element", t: () => __RΦ.a(91), v: null }, { n: "context", t: () => __RΦ.a(384), v: null }], f: "" }) }, [384]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(385), p: [__RΦ.a(362), __RΦ.a(363)] }) }, [385]: { LΦ: t => Object }, [362]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(359), p: [__RΦ.a(200)] }) }, [359]: { TΦ: "5", name: "PropertyFromXMLContext" }, [200]: { LΦ: t => Object }, [363]: { LΦ: t => "elements" }, [592]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(92), p: [{ n: "context", t: () => __RΦ.a(384), v: null }], f: "" }) }, [612]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(656), p: [{ n: "context", t: () => __RΦ.a(362), v: null }], f: "" }) }, [656]: { LΦ: t => Object }, [658]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(93), p: [{ n: "context", t: () => __RΦ.a(664), v: null }], f: "" }) }, [93]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(92) }] }) }, [664]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(661), p: [__RΦ.a(200)] }) }, [661]: { TΦ: "5", name: "PropertyToXMLContext" }, [726]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(74), __RΦ.a(725)] }) }, [74]: { LΦ: t => RegExp }, [725]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [593]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [667]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [617]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [537]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(514)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [514]: { TΦ: "5", name: "ConversionOptions" }, [541]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(540) }) }, [540]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [572]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(573), p: [__RΦ.a(366)] }) }, [573]: { LΦ: t => Object }, [366]: { LΦ: t => Object }, [502]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(499), p: [__RΦ.a(366)] }) }, [499]: { LΦ: t => require("../model").XMLModel }, [674]: { LΦ: t => Object }, [1427]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1428), p: [__RΦ.a(674)] }) }, [1428]: { LΦ: t => Object }, [701]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(499), p: [__RΦ.a(674)] }) }, [511]: { RΦ: t => ({ TΦ: "O", m: [{ n: "fromXML", f: "", t: __RΦ.a(528) }, { n: "toXML", f: "", t: __RΦ.a(1391) }, { n: "options", f: "", t: __RΦ.a(1365) }] }) }, [528]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(514), p: [__RΦ.a(520), __RΦ.a(526)] }) }, [520]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(521), p: [__RΦ.a(518), __RΦ.a(369)] }) }, [521]: { LΦ: t => Object }, [518]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(365), p: [__RΦ.a(506)] }) }, [365]: { TΦ: "5", name: "fromXMLContext" }, [506]: { LΦ: t => Object }, [369]: { LΦ: t => "properties" }, [526]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(527), p: [__RΦ.a(506)] }) }, [527]: { LΦ: t => Object }, [1391]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(514), p: [__RΦ.a(1383), __RΦ.a(1389)] }) }, [1383]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1384), p: [__RΦ.a(1213), __RΦ.a(369)] }) }, [1384]: { LΦ: t => Object }, [1213]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(673), p: [__RΦ.a(506)] }) }, [673]: { TΦ: "5", name: "toXMLContext" }, [1389]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1390), p: [__RΦ.a(506)] }) }, [1390]: { LΦ: t => Object }, [1365]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(754), p: [__RΦ.a(1363), __RΦ.a(1364)] }) }, [754]: { LΦ: t => Map }, [1363]: { LΦ: t => Object }, [1364]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(199), p: [__RΦ.a(506)] }) }, [1227]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(514), p: [__RΦ.a(518), __RΦ.a(506)] }) }, [1214]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(514), p: [__RΦ.a(1213), __RΦ.a(93)] }) }, [1835]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1842]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) } } };
19
+ }, t: { [1368]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1339)] }) }, [212]: { TΦ: "5", name: "XMLModelPropertyOptions" }, [1339]: { LΦ: t => Object }, [1372]: { LΦ: t => Object }, [491]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(373)] }) }, [373]: { LΦ: t => Object }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => require("../types").IΦXMLElement }, [494]: { LΦ: t => Object }, [495]: { LΦ: t => require("typescript-rtti").ReflectedProperty }, [13]: { LΦ: t => String }, [20]: { LΦ: t => Boolean }, [503]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1)] }) }, [500]: { LΦ: t => require("../model").XMLModel }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [355]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(20), p: [{ n: "element", t: () => __RΦ.a(103), v: null }, { n: "context", t: () => __RΦ.a(397), v: null }], f: "" }) }, [397]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(398), p: [__RΦ.a(375), __RΦ.a(376)] }) }, [398]: { LΦ: t => Object }, [375]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(372), p: [__RΦ.a(213)] }) }, [372]: { TΦ: "5", name: "PropertyFromXMLContext" }, [213]: { LΦ: t => Object }, [376]: { LΦ: t => "elements" }, [1219]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(105), p: [{ n: "context", t: () => __RΦ.a(397), v: null }], f: "" }) }, [1221]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(1334), p: [{ n: "context", t: () => __RΦ.a(375), v: null }], f: "" }) }, [1334]: { LΦ: t => Object }, [1223]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(109), p: [{ n: "context", t: () => __RΦ.a(1341), v: null }], f: "" }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [1341]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1338), p: [__RΦ.a(213)] }) }, [1338]: { TΦ: "5", name: "PropertyToXMLContext" }, [1382]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(74), __RΦ.a(1381)] }) }, [74]: { LΦ: t => RegExp }, [1381]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [1275]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1344]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1297]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [504]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(503)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [608]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(600)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [600]: { TΦ: "5", name: "ConversionOptions" }, [611]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(610) }) }, [610]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [654]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(655), p: [__RΦ.a(379)] }) }, [655]: { LΦ: t => Object }, [379]: { LΦ: t => Object }, [517]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(379)] }) }, [859]: { LΦ: t => Object }, [886]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(887), p: [__RΦ.a(859)] }) }, [887]: { LΦ: t => Object }, [924]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(859)] }) }, [526]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(521)] }) }, [521]: { LΦ: t => Object }, [658]: { RΦ: t => ({ TΦ: "O", m: [{ n: "fromXML", f: "", t: __RΦ.a(665) }, { n: "toXML", f: "", t: __RΦ.a(896) }, { n: "options", f: "", t: __RΦ.a(1072) }] }) }, [665]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(661), __RΦ.a(663)] }) }, [661]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(662), p: [__RΦ.a(604), __RΦ.a(382)] }) }, [662]: { LΦ: t => Object }, [604]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(378), p: [__RΦ.a(521)] }) }, [378]: { TΦ: "5", name: "fromXMLContext" }, [382]: { LΦ: t => "properties" }, [663]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(664), p: [__RΦ.a(521)] }) }, [664]: { LΦ: t => Object }, [896]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(892), __RΦ.a(894)] }) }, [892]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(893), p: [__RΦ.a(861), __RΦ.a(382)] }) }, [893]: { LΦ: t => Object }, [861]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(858), p: [__RΦ.a(521)] }) }, [858]: { TΦ: "5", name: "toXMLContext" }, [894]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(895), p: [__RΦ.a(521)] }) }, [895]: { LΦ: t => Object }, [1072]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1062), p: [__RΦ.a(1070), __RΦ.a(1071)] }) }, [1062]: { LΦ: t => Map }, [1070]: { LΦ: t => Object }, [1071]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(521)] }) }, [605]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(604), __RΦ.a(521)] }) }, [862]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(861), __RΦ.a(109)] }) }, [1813]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1812)] }) }, [1812]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1619)] }) }, [1619]: { LΦ: t => Object }, [1640]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1630]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) } } };
20
20
  var IΦPropertyToXMLContext = { name: "PropertyToXMLContext", prototype: {}, identity: Symbol("PropertyToXMLContext (interface)") };
21
21
  exports.IΦPropertyToXMLContext = IΦPropertyToXMLContext;
22
- (t => __RΦ.t[661] = t)(IΦPropertyToXMLContext);
22
+ (t => __RΦ.t[1338] = t)(IΦPropertyToXMLContext);
23
23
  __RΦ.m("rt:P", ["property", "value"])(IΦPropertyToXMLContext);
24
24
  __RΦ.m("rt:m", [])(IΦPropertyToXMLContext);
25
25
  __RΦ.m("rt:i", [() => IΦOmit])(IΦPropertyToXMLContext);
26
26
  __RΦ.m("rt:f", "Ie")(IΦPropertyToXMLContext);
27
- __RΦ.m("rt:t", () => __RΦ.a(696))(IΦPropertyToXMLContext.prototype, "property");
27
+ __RΦ.m("rt:t", () => __RΦ.a(1368))(IΦPropertyToXMLContext.prototype, "property");
28
28
  __RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "property");
29
- __RΦ.m("rt:t", () => __RΦ.a(700))(IΦPropertyToXMLContext.prototype, "value");
29
+ __RΦ.m("rt:t", () => __RΦ.a(1372))(IΦPropertyToXMLContext.prototype, "value");
30
30
  __RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "value");
31
- __RΦ.m("rt:t", () => __RΦ.a(696))(IΦPropertyToXMLContext.prototype, "property");
31
+ __RΦ.m("rt:t", () => __RΦ.a(1368))(IΦPropertyToXMLContext.prototype, "property");
32
32
  __RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "property");
33
- __RΦ.m("rt:t", () => __RΦ.a(700))(IΦPropertyToXMLContext.prototype, "value");
33
+ __RΦ.m("rt:t", () => __RΦ.a(1372))(IΦPropertyToXMLContext.prototype, "value");
34
34
  __RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "value");
35
35
  var IΦPropertyFromXMLContext = { name: "PropertyFromXMLContext", prototype: {}, identity: Symbol("PropertyFromXMLContext (interface)") };
36
36
  exports.IΦPropertyFromXMLContext = IΦPropertyFromXMLContext;
37
- (t => __RΦ.t[359] = t)(IΦPropertyFromXMLContext);
37
+ (t => __RΦ.t[372] = t)(IΦPropertyFromXMLContext);
38
38
  __RΦ.m("rt:P", ["property", "elements"])(IΦPropertyFromXMLContext);
39
39
  __RΦ.m("rt:m", [])(IΦPropertyFromXMLContext);
40
40
  __RΦ.m("rt:i", [() => IΦOmit])(IΦPropertyFromXMLContext);
41
41
  __RΦ.m("rt:f", "Ie")(IΦPropertyFromXMLContext);
42
- __RΦ.m("rt:t", () => __RΦ.a(478))(IΦPropertyFromXMLContext.prototype, "property");
42
+ __RΦ.m("rt:t", () => __RΦ.a(491))(IΦPropertyFromXMLContext.prototype, "property");
43
43
  __RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "property");
44
- __RΦ.m("rt:t", () => __RΦ.a(92))(IΦPropertyFromXMLContext.prototype, "elements");
44
+ __RΦ.m("rt:t", () => __RΦ.a(105))(IΦPropertyFromXMLContext.prototype, "elements");
45
45
  __RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "elements");
46
- __RΦ.m("rt:t", () => __RΦ.a(478))(IΦPropertyFromXMLContext.prototype, "property");
46
+ __RΦ.m("rt:t", () => __RΦ.a(491))(IΦPropertyFromXMLContext.prototype, "property");
47
47
  __RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "property");
48
- __RΦ.m("rt:t", () => __RΦ.a(92))(IΦPropertyFromXMLContext.prototype, "elements");
48
+ __RΦ.m("rt:t", () => __RΦ.a(105))(IΦPropertyFromXMLContext.prototype, "elements");
49
49
  __RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "elements");
50
50
  var IΦXMLModelPropertyOptions = { name: "XMLModelPropertyOptions", prototype: {}, identity: Symbol("XMLModelPropertyOptions (interface)") };
51
51
  exports.IΦXMLModelPropertyOptions = IΦXMLModelPropertyOptions;
52
- (t => __RΦ.t[199] = t)(IΦXMLModelPropertyOptions);
53
- __RΦ.m("rt:P", ["name", "reflected", "tagname", "ignored", "inline", "isSourceElement", "resolveElements", "fromXML", "toXML"])(IΦXMLModelPropertyOptions);
52
+ (t => __RΦ.t[212] = t)(IΦXMLModelPropertyOptions);
53
+ __RΦ.m("rt:P", ["name", "reflected", "tagname", "ignored", "inline", "model", "isSourceElement", "resolveElements", "fromXML", "toXML"])(IΦXMLModelPropertyOptions);
54
54
  __RΦ.m("rt:m", [])(IΦXMLModelPropertyOptions);
55
55
  __RΦ.m("rt:f", "Ie")(IΦXMLModelPropertyOptions);
56
- __RΦ.m("rt:t", () => __RΦ.a(481))(IΦXMLModelPropertyOptions.prototype, "name");
56
+ __RΦ.m("rt:t", () => __RΦ.a(494))(IΦXMLModelPropertyOptions.prototype, "name");
57
57
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "name");
58
- __RΦ.m("rt:t", () => __RΦ.a(482))(IΦXMLModelPropertyOptions.prototype, "reflected");
58
+ __RΦ.m("rt:t", () => __RΦ.a(495))(IΦXMLModelPropertyOptions.prototype, "reflected");
59
59
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "reflected");
60
60
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelPropertyOptions.prototype, "tagname");
61
61
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "tagname");
@@ -63,17 +63,19 @@ __RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "ignore
63
63
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "ignored");
64
64
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "inline");
65
65
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "inline");
66
- __RΦ.m("rt:t", () => __RΦ.a(342))(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
66
+ __RΦ.m("rt:t", () => __RΦ.a(503))(IΦXMLModelPropertyOptions.prototype, "model");
67
+ __RΦ.m("rt:f", "P?")(IΦXMLModelPropertyOptions.prototype, "model");
68
+ __RΦ.m("rt:t", () => __RΦ.a(355))(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
67
69
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
68
- __RΦ.m("rt:t", () => __RΦ.a(592))(IΦXMLModelPropertyOptions.prototype, "resolveElements");
70
+ __RΦ.m("rt:t", () => __RΦ.a(1219))(IΦXMLModelPropertyOptions.prototype, "resolveElements");
69
71
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "resolveElements");
70
- __RΦ.m("rt:t", () => __RΦ.a(612))(IΦXMLModelPropertyOptions.prototype, "fromXML");
72
+ __RΦ.m("rt:t", () => __RΦ.a(1221))(IΦXMLModelPropertyOptions.prototype, "fromXML");
71
73
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "fromXML");
72
- __RΦ.m("rt:t", () => __RΦ.a(658))(IΦXMLModelPropertyOptions.prototype, "toXML");
74
+ __RΦ.m("rt:t", () => __RΦ.a(1223))(IΦXMLModelPropertyOptions.prototype, "toXML");
73
75
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "toXML");
74
- __RΦ.m("rt:t", () => __RΦ.a(481))(IΦXMLModelPropertyOptions.prototype, "name");
76
+ __RΦ.m("rt:t", () => __RΦ.a(494))(IΦXMLModelPropertyOptions.prototype, "name");
75
77
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "name");
76
- __RΦ.m("rt:t", () => __RΦ.a(482))(IΦXMLModelPropertyOptions.prototype, "reflected");
78
+ __RΦ.m("rt:t", () => __RΦ.a(495))(IΦXMLModelPropertyOptions.prototype, "reflected");
77
79
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "reflected");
78
80
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelPropertyOptions.prototype, "tagname");
79
81
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "tagname");
@@ -81,134 +83,148 @@ __RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "ignore
81
83
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "ignored");
82
84
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "inline");
83
85
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "inline");
84
- __RΦ.m("rt:t", () => __RΦ.a(342))(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
86
+ __RΦ.m("rt:t", () => __RΦ.a(503))(IΦXMLModelPropertyOptions.prototype, "model");
87
+ __RΦ.m("rt:f", "P?")(IΦXMLModelPropertyOptions.prototype, "model");
88
+ __RΦ.m("rt:t", () => __RΦ.a(355))(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
85
89
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
86
- __RΦ.m("rt:t", () => __RΦ.a(592))(IΦXMLModelPropertyOptions.prototype, "resolveElements");
90
+ __RΦ.m("rt:t", () => __RΦ.a(1219))(IΦXMLModelPropertyOptions.prototype, "resolveElements");
87
91
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "resolveElements");
88
- __RΦ.m("rt:t", () => __RΦ.a(612))(IΦXMLModelPropertyOptions.prototype, "fromXML");
92
+ __RΦ.m("rt:t", () => __RΦ.a(1221))(IΦXMLModelPropertyOptions.prototype, "fromXML");
89
93
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "fromXML");
90
- __RΦ.m("rt:t", () => __RΦ.a(658))(IΦXMLModelPropertyOptions.prototype, "toXML");
94
+ __RΦ.m("rt:t", () => __RΦ.a(1223))(IΦXMLModelPropertyOptions.prototype, "toXML");
91
95
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "toXML");
92
96
  var IΦCreateXMLModelPropertyOptions = { name: "CreateXMLModelPropertyOptions", prototype: {}, identity: Symbol("CreateXMLModelPropertyOptions (interface)") };
93
97
  exports.IΦCreateXMLModelPropertyOptions = IΦCreateXMLModelPropertyOptions;
94
- (t => __RΦ.t[183] = t)(IΦCreateXMLModelPropertyOptions);
95
- __RΦ.m("rt:P", ["tagname", "sourceElements", "resolveElements", "toXML", "fromXML", "inline", "ignore"])(IΦCreateXMLModelPropertyOptions);
98
+ (t => __RΦ.t[196] = t)(IΦCreateXMLModelPropertyOptions);
99
+ __RΦ.m("rt:P", ["tagname", "sourceElements", "resolveElements", "toXML", "fromXML", "inline", "ignore", "model"])(IΦCreateXMLModelPropertyOptions);
96
100
  __RΦ.m("rt:m", [])(IΦCreateXMLModelPropertyOptions);
97
101
  __RΦ.m("rt:f", "Ie")(IΦCreateXMLModelPropertyOptions);
98
102
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
99
103
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
100
- __RΦ.m("rt:t", () => __RΦ.a(726))(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
104
+ __RΦ.m("rt:t", () => __RΦ.a(1382))(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
101
105
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
102
- __RΦ.m("rt:t", () => __RΦ.a(593))(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
106
+ __RΦ.m("rt:t", () => __RΦ.a(1275))(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
103
107
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
104
- __RΦ.m("rt:t", () => __RΦ.a(667))(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
108
+ __RΦ.m("rt:t", () => __RΦ.a(1344))(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
105
109
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
106
- __RΦ.m("rt:t", () => __RΦ.a(617))(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
110
+ __RΦ.m("rt:t", () => __RΦ.a(1297))(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
107
111
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
108
112
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "inline");
109
113
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "inline");
110
114
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
111
115
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
116
+ __RΦ.m("rt:t", () => __RΦ.a(504))(IΦCreateXMLModelPropertyOptions.prototype, "model");
117
+ __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "model");
112
118
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
113
119
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
114
- __RΦ.m("rt:t", () => __RΦ.a(726))(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
120
+ __RΦ.m("rt:t", () => __RΦ.a(1382))(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
115
121
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
116
- __RΦ.m("rt:t", () => __RΦ.a(593))(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
122
+ __RΦ.m("rt:t", () => __RΦ.a(1275))(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
117
123
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
118
- __RΦ.m("rt:t", () => __RΦ.a(667))(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
124
+ __RΦ.m("rt:t", () => __RΦ.a(1344))(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
119
125
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
120
- __RΦ.m("rt:t", () => __RΦ.a(617))(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
126
+ __RΦ.m("rt:t", () => __RΦ.a(1297))(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
121
127
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
122
128
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "inline");
123
129
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "inline");
124
130
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
125
131
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
132
+ __RΦ.m("rt:t", () => __RΦ.a(504))(IΦCreateXMLModelPropertyOptions.prototype, "model");
133
+ __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "model");
126
134
  var IΦConversionOptions = { name: "ConversionOptions", prototype: {}, identity: Symbol("ConversionOptions (interface)") };
127
- (t => __RΦ.t[514] = t)(IΦConversionOptions);
135
+ (t => __RΦ.t[600] = t)(IΦConversionOptions);
128
136
  __RΦ.m("rt:P", ["parent", "middlewares"])(IΦConversionOptions);
129
137
  __RΦ.m("rt:m", [])(IΦConversionOptions);
130
138
  __RΦ.m("rt:f", "I")(IΦConversionOptions);
131
- __RΦ.m("rt:t", () => __RΦ.a(537))(IΦConversionOptions.prototype, "parent");
139
+ __RΦ.m("rt:t", () => __RΦ.a(608))(IΦConversionOptions.prototype, "parent");
132
140
  __RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "parent");
133
- __RΦ.m("rt:t", () => __RΦ.a(541))(IΦConversionOptions.prototype, "middlewares");
141
+ __RΦ.m("rt:t", () => __RΦ.a(611))(IΦConversionOptions.prototype, "middlewares");
134
142
  __RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "middlewares");
135
- __RΦ.m("rt:t", () => __RΦ.a(537))(IΦConversionOptions.prototype, "parent");
143
+ __RΦ.m("rt:t", () => __RΦ.a(608))(IΦConversionOptions.prototype, "parent");
136
144
  __RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "parent");
137
- __RΦ.m("rt:t", () => __RΦ.a(541))(IΦConversionOptions.prototype, "middlewares");
145
+ __RΦ.m("rt:t", () => __RΦ.a(611))(IΦConversionOptions.prototype, "middlewares");
138
146
  __RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "middlewares");
139
147
  var IΦfromXMLContext = { name: "fromXMLContext", prototype: {}, identity: Symbol("fromXMLContext (interface)") };
140
148
  exports.IΦfromXMLContext = IΦfromXMLContext;
141
- (t => __RΦ.t[365] = t)(IΦfromXMLContext);
149
+ (t => __RΦ.t[378] = t)(IΦfromXMLContext);
142
150
  __RΦ.m("rt:P", ["xml", "properties", "model"])(IΦfromXMLContext);
143
151
  __RΦ.m("rt:m", [])(IΦfromXMLContext);
144
152
  __RΦ.m("rt:f", "Ie")(IΦfromXMLContext);
145
- __RΦ.m("rt:t", () => __RΦ.a(93))(IΦfromXMLContext.prototype, "xml");
153
+ __RΦ.m("rt:t", () => __RΦ.a(109))(IΦfromXMLContext.prototype, "xml");
146
154
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "xml");
147
- __RΦ.m("rt:t", () => __RΦ.a(572))(IΦfromXMLContext.prototype, "properties");
155
+ __RΦ.m("rt:t", () => __RΦ.a(654))(IΦfromXMLContext.prototype, "properties");
148
156
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "properties");
149
- __RΦ.m("rt:t", () => __RΦ.a(502))(IΦfromXMLContext.prototype, "model");
157
+ __RΦ.m("rt:t", () => __RΦ.a(517))(IΦfromXMLContext.prototype, "model");
150
158
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "model");
151
- __RΦ.m("rt:t", () => __RΦ.a(93))(IΦfromXMLContext.prototype, "xml");
159
+ __RΦ.m("rt:t", () => __RΦ.a(109))(IΦfromXMLContext.prototype, "xml");
152
160
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "xml");
153
- __RΦ.m("rt:t", () => __RΦ.a(572))(IΦfromXMLContext.prototype, "properties");
161
+ __RΦ.m("rt:t", () => __RΦ.a(654))(IΦfromXMLContext.prototype, "properties");
154
162
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "properties");
155
- __RΦ.m("rt:t", () => __RΦ.a(502))(IΦfromXMLContext.prototype, "model");
163
+ __RΦ.m("rt:t", () => __RΦ.a(517))(IΦfromXMLContext.prototype, "model");
156
164
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "model");
157
165
  var IΦtoXMLContext = { name: "toXMLContext", prototype: {}, identity: Symbol("toXMLContext (interface)") };
158
166
  exports.IΦtoXMLContext = IΦtoXMLContext;
159
- (t => __RΦ.t[673] = t)(IΦtoXMLContext);
167
+ (t => __RΦ.t[858] = t)(IΦtoXMLContext);
160
168
  __RΦ.m("rt:P", ["object", "properties", "model"])(IΦtoXMLContext);
161
169
  __RΦ.m("rt:m", [])(IΦtoXMLContext);
162
170
  __RΦ.m("rt:f", "Ie")(IΦtoXMLContext);
163
- __RΦ.m("rt:t", () => __RΦ.a(674))(IΦtoXMLContext.prototype, "object");
171
+ __RΦ.m("rt:t", () => __RΦ.a(859))(IΦtoXMLContext.prototype, "object");
164
172
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "object");
165
- __RΦ.m("rt:t", () => __RΦ.a(1427))(IΦtoXMLContext.prototype, "properties");
173
+ __RΦ.m("rt:t", () => __RΦ.a(886))(IΦtoXMLContext.prototype, "properties");
166
174
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "properties");
167
- __RΦ.m("rt:t", () => __RΦ.a(701))(IΦtoXMLContext.prototype, "model");
175
+ __RΦ.m("rt:t", () => __RΦ.a(924))(IΦtoXMLContext.prototype, "model");
168
176
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "model");
169
- __RΦ.m("rt:t", () => __RΦ.a(674))(IΦtoXMLContext.prototype, "object");
177
+ __RΦ.m("rt:t", () => __RΦ.a(859))(IΦtoXMLContext.prototype, "object");
170
178
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "object");
171
- __RΦ.m("rt:t", () => __RΦ.a(1427))(IΦtoXMLContext.prototype, "properties");
179
+ __RΦ.m("rt:t", () => __RΦ.a(886))(IΦtoXMLContext.prototype, "properties");
172
180
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "properties");
173
- __RΦ.m("rt:t", () => __RΦ.a(701))(IΦtoXMLContext.prototype, "model");
181
+ __RΦ.m("rt:t", () => __RΦ.a(924))(IΦtoXMLContext.prototype, "model");
174
182
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "model");
175
183
  var IΦXMLModelOptions = { name: "XMLModelOptions", prototype: {}, identity: Symbol("XMLModelOptions (interface)") };
176
184
  exports.IΦXMLModelOptions = IΦXMLModelOptions;
177
- (t => __RΦ.t[505] = t)(IΦXMLModelOptions);
178
- __RΦ.m("rt:P", ["properties", "fromXML", "toXML", "tagname"])(IΦXMLModelOptions);
185
+ (t => __RΦ.t[520] = t)(IΦXMLModelOptions);
186
+ __RΦ.m("rt:P", ["parent", "properties", "fromXML", "toXML", "tagname"])(IΦXMLModelOptions);
179
187
  __RΦ.m("rt:m", [])(IΦXMLModelOptions);
180
188
  __RΦ.m("rt:f", "Ie")(IΦXMLModelOptions);
181
- __RΦ.m("rt:t", () => __RΦ.a(511))(IΦXMLModelOptions.prototype, "properties");
189
+ __RΦ.m("rt:t", () => __RΦ.a(526))(IΦXMLModelOptions.prototype, "parent");
190
+ __RΦ.m("rt:f", "P?")(IΦXMLModelOptions.prototype, "parent");
191
+ __RΦ.m("rt:t", () => __RΦ.a(658))(IΦXMLModelOptions.prototype, "properties");
182
192
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "properties");
183
- __RΦ.m("rt:t", () => __RΦ.a(1227))(IΦXMLModelOptions.prototype, "fromXML");
193
+ __RΦ.m("rt:t", () => __RΦ.a(605))(IΦXMLModelOptions.prototype, "fromXML");
184
194
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "fromXML");
185
- __RΦ.m("rt:t", () => __RΦ.a(1214))(IΦXMLModelOptions.prototype, "toXML");
195
+ __RΦ.m("rt:t", () => __RΦ.a(862))(IΦXMLModelOptions.prototype, "toXML");
186
196
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "toXML");
187
197
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelOptions.prototype, "tagname");
188
198
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "tagname");
189
- __RΦ.m("rt:t", () => __RΦ.a(511))(IΦXMLModelOptions.prototype, "properties");
199
+ __RΦ.m("rt:t", () => __RΦ.a(526))(IΦXMLModelOptions.prototype, "parent");
200
+ __RΦ.m("rt:f", "P?")(IΦXMLModelOptions.prototype, "parent");
201
+ __RΦ.m("rt:t", () => __RΦ.a(658))(IΦXMLModelOptions.prototype, "properties");
190
202
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "properties");
191
- __RΦ.m("rt:t", () => __RΦ.a(1227))(IΦXMLModelOptions.prototype, "fromXML");
203
+ __RΦ.m("rt:t", () => __RΦ.a(605))(IΦXMLModelOptions.prototype, "fromXML");
192
204
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "fromXML");
193
- __RΦ.m("rt:t", () => __RΦ.a(1214))(IΦXMLModelOptions.prototype, "toXML");
205
+ __RΦ.m("rt:t", () => __RΦ.a(862))(IΦXMLModelOptions.prototype, "toXML");
194
206
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "toXML");
195
207
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelOptions.prototype, "tagname");
196
208
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "tagname");
197
209
  var IΦCreateXMLModelOptions = { name: "CreateXMLModelOptions", prototype: {}, identity: Symbol("CreateXMLModelOptions (interface)") };
198
210
  exports.IΦCreateXMLModelOptions = IΦCreateXMLModelOptions;
199
- (t => __RΦ.t[1829] = t)(IΦCreateXMLModelOptions);
200
- __RΦ.m("rt:P", ["fromXML", "tagname", "toXML"])(IΦCreateXMLModelOptions);
211
+ (t => __RΦ.t[1618] = t)(IΦCreateXMLModelOptions);
212
+ __RΦ.m("rt:P", ["parent", "fromXML", "toXML", "tagname"])(IΦCreateXMLModelOptions);
201
213
  __RΦ.m("rt:m", [])(IΦCreateXMLModelOptions);
202
214
  __RΦ.m("rt:f", "Ie")(IΦCreateXMLModelOptions);
203
- __RΦ.m("rt:t", () => __RΦ.a(1835))(IΦCreateXMLModelOptions.prototype, "fromXML");
215
+ __RΦ.m("rt:t", () => __RΦ.a(1813))(IΦCreateXMLModelOptions.prototype, "parent");
216
+ __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "parent");
217
+ __RΦ.m("rt:t", () => __RΦ.a(1640))(IΦCreateXMLModelOptions.prototype, "fromXML");
204
218
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "fromXML");
219
+ __RΦ.m("rt:t", () => __RΦ.a(1630))(IΦCreateXMLModelOptions.prototype, "toXML");
220
+ __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "toXML");
205
221
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelOptions.prototype, "tagname");
206
222
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "tagname");
207
- __RΦ.m("rt:t", () => __RΦ.a(1842))(IΦCreateXMLModelOptions.prototype, "toXML");
208
- __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "toXML");
209
- __RΦ.m("rt:t", () => __RΦ.a(1835))(IΦCreateXMLModelOptions.prototype, "fromXML");
223
+ __RΦ.m("rt:t", () => __RΦ.a(1813))(IΦCreateXMLModelOptions.prototype, "parent");
224
+ __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "parent");
225
+ __RΦ.m("rt:t", () => __RΦ.a(1640))(IΦCreateXMLModelOptions.prototype, "fromXML");
210
226
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "fromXML");
227
+ __RΦ.m("rt:t", () => __RΦ.a(1630))(IΦCreateXMLModelOptions.prototype, "toXML");
228
+ __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "toXML");
211
229
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelOptions.prototype, "tagname");
212
230
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "tagname");
213
- __RΦ.m("rt:t", () => __RΦ.a(1842))(IΦCreateXMLModelOptions.prototype, "toXML");
214
- __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "toXML");
@@ -1,8 +1,16 @@
1
1
  export type { Constructor } from "typescript-rtti";
2
2
  export declare type UnknownRecord = Record<string | number | symbol, unknown>;
3
3
  export declare type UnknownObject = object;
4
- import type { Element as _XMLElement } from "xml-js";
5
- export declare type XMLElement = _XMLElement;
4
+ export interface XMLAttributes {
5
+ [key: string]: string | number | undefined;
6
+ }
7
+ export interface XMLElement {
8
+ type?: string;
9
+ name?: string;
10
+ attributes?: XMLAttributes;
11
+ elements?: Array<XMLElement>;
12
+ text?: string | number | boolean;
13
+ }
6
14
  export declare type XMLRoot = {
7
15
  elements: XMLElement[];
8
16
  };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IΦXMLElement = exports.IΦXMLAttributes = void 0;
3
4
  const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metadata(k, v)(t, ...a) : void 0, f: (f, d, n) => (d.forEach(d => d(f)), Object.defineProperty(f, "name", { value: n, writable: false }), f), c: (c, d, dp, dsp, n) => (d.forEach(d => d(c)), dp.forEach(([p, d]) => d(c.prototype, p)), dsp.forEach(([p, d]) => d(c, p)), n ? Object.defineProperty(c, "name", { value: n, writable: false }) : undefined, c), r: (o, a) => (Object.assign(o, a)), a: id => {
4
5
  let t = __RΦ.t[id];
5
6
  if (t === void 0)
@@ -15,4 +16,36 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
15
16
  __RΦ.t[id] = t = l;
16
17
  }
17
18
  return t;
18
- }, t: {} };
19
+ }, t: { [13]: { LΦ: t => String }, [101]: { TΦ: "5", name: "XMLAttributes" }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { TΦ: "5", name: "XMLElement" }, [107]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(14), __RΦ.a(17), __RΦ.a(19)] }) }, [14]: { LΦ: t => Number }, [17]: { RΦ: t => ({ TΦ: "0" }) }, [19]: { RΦ: t => ({ TΦ: "1" }) } } };
20
+ var IΦXMLAttributes = { name: "XMLAttributes", prototype: {}, identity: Symbol("XMLAttributes (interface)") };
21
+ exports.IΦXMLAttributes = IΦXMLAttributes;
22
+ (t => __RΦ.t[101] = t)(IΦXMLAttributes);
23
+ __RΦ.m("rt:P", [])(IΦXMLAttributes);
24
+ __RΦ.m("rt:m", [])(IΦXMLAttributes);
25
+ __RΦ.m("rt:f", "Ie")(IΦXMLAttributes);
26
+ var IΦXMLElement = { name: "XMLElement", prototype: {}, identity: Symbol("XMLElement (interface)") };
27
+ exports.IΦXMLElement = IΦXMLElement;
28
+ (t => __RΦ.t[103] = t)(IΦXMLElement);
29
+ __RΦ.m("rt:P", ["type", "name", "attributes", "elements", "text"])(IΦXMLElement);
30
+ __RΦ.m("rt:m", [])(IΦXMLElement);
31
+ __RΦ.m("rt:f", "Ie")(IΦXMLElement);
32
+ __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLElement.prototype, "type");
33
+ __RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "type");
34
+ __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLElement.prototype, "name");
35
+ __RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "name");
36
+ __RΦ.m("rt:t", () => __RΦ.a(101))(IΦXMLElement.prototype, "attributes");
37
+ __RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "attributes");
38
+ __RΦ.m("rt:t", () => __RΦ.a(105))(IΦXMLElement.prototype, "elements");
39
+ __RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "elements");
40
+ __RΦ.m("rt:t", () => __RΦ.a(107))(IΦXMLElement.prototype, "text");
41
+ __RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "text");
42
+ __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLElement.prototype, "type");
43
+ __RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "type");
44
+ __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLElement.prototype, "name");
45
+ __RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "name");
46
+ __RΦ.m("rt:t", () => __RΦ.a(101))(IΦXMLElement.prototype, "attributes");
47
+ __RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "attributes");
48
+ __RΦ.m("rt:t", () => __RΦ.a(105))(IΦXMLElement.prototype, "elements");
49
+ __RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "elements");
50
+ __RΦ.m("rt:t", () => __RΦ.a(107))(IΦXMLElement.prototype, "text");
51
+ __RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "text");
@@ -1,7 +1,6 @@
1
- import { js2xml } from "xml-js";
2
- import { XMLElement, XMLRoot } from "./types";
1
+ import { XMLElement, XMLRoot } from "../types";
3
2
  export declare function parse(string: string): XMLRoot;
4
- export declare function stringify(xml: XMLRoot, options?: Parameters<typeof js2xml>[1]): string;
3
+ export declare const stringify: typeof import("xml-js").js2xml;
5
4
  export declare function getContent(xml: XMLElement): string | number | boolean | undefined;
6
5
  export declare function fromContent(content: string): {
7
6
  elements: [{
@@ -20,12 +19,14 @@ export declare function fromContent(content: string, tag: string, attributes?: X
20
19
  };
21
20
  export declare function addElement(xml: XMLElement, element: XMLElement): void;
22
21
  export declare function setAttribute(xml: XMLElement, attribute: string, value: string): void;
22
+ export declare function deleteAttribute(xml: XMLElement, attribute: string): void;
23
23
  declare const XML: {
24
24
  parse: typeof parse;
25
- stringify: typeof stringify;
25
+ stringify: typeof import("xml-js").js2xml;
26
26
  fromContent: typeof fromContent;
27
27
  getContent: typeof getContent;
28
28
  addElement: typeof addElement;
29
29
  setAttribute: typeof setAttribute;
30
+ deleteAttribute: typeof deleteAttribute;
30
31
  };
31
32
  export default XML;