UNPKG

xml-class-transformer

Version:

Fluently parse XML into beautiful JS/TS classes and serialize them. GoLang's encoding/xml alternative for JS/TS world.

4 lines (3 loc) 211 B
import xmljs from 'xml-js-v2'; import type { XmlClass } from './types'; export declare function xmlToClass<T extends XmlClass>(xml: string, classConstructor: T, options?: xmljs.Options.XML2JS): InstanceType<T>;