UNPKG

libxslt-wasm

Version:

JavaScript bindings for libxslt compiled to WebAssembly

34 lines (33 loc) 833 B
declare const xmlOptionsMap: { recover: 1; noEnt: 2; dtdLoad: 4; dtdAttr: 8; dtdValid: 16; noError: 32; noWarning: 64; pedantic: 128; noBlanks: 256; sax1: 512; xInclude: 1024; noNet: 2048; noDict: 4096; nsClean: 8192; noCData: 16384; noXIncNode: 32768; compact: 65536; old10: 131072; noBaseFix: 262144; huge: 524288; oldSax: 1048576; ignoreEnc: 2097152; bigLines: 4194304; noXxe: 8388608; unzip: 16777216; noSysCatalog: 33554432; catalogPi: 67108864; }; type XmlOption = keyof typeof xmlOptionsMap; declare const isXmlOption: (key: string) => key is XmlOption; declare const parseXmlOptions: (xmlOptions: Partial<Record<XmlOption, boolean>>) => number; export { xmlOptionsMap, type XmlOption, isXmlOption, parseXmlOptions };