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

14 lines 546 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isTypeOf = isTypeOf; const get_extended_types_1 = require("./get-extended-types"); function isTypeOf(source, target) { // @ts-expect-error the function checks is this types are equal if (source === target) { return true; } return ((0, get_extended_types_1.getExtendedTypes)(target) // @ts-expect-error the function checks is this types are equal .some((type) => type === source)); } //# sourceMappingURL=is-type-of.js.map