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

13 lines 607 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isVirtualElement = isVirtualElement; const reflect_metadata_1 = require("@rxap/reflect-metadata"); const metadata_keys_1 = require("../metadata-keys"); function isVirtualElement(elementOrType) { if (!elementOrType) { return false; } const constructor = typeof elementOrType === 'function' ? elementOrType : elementOrType.constructor; return (0, reflect_metadata_1.getOwnMetadata)(metadata_keys_1.ElementParserMetaData.VIRTUAL, constructor) === true; } //# sourceMappingURL=is-virtual-element.js.map