UNPKG

@foxglove/xmlrpc

Version:

TypeScript library implementing an XMLRPC client and server with pluggable server backend

12 lines (8 loc) 251 B
import type { XMLBuilder } from "xmlbuilder2/lib/interfaces"; export class CustomType { tagName = "customType"; constructor(public raw: string) {} serialize(xml: XMLBuilder): XMLBuilder { return xml.ele(this.tagName).txt(this.raw); } }