feat(core): improve in-memory validation, FatturaPA detection coverage, and published type compatibility

This commit is contained in:
2026-04-16 20:30:56 +00:00
parent 55bee02a2e
commit 3f37f6538c
60 changed files with 5723 additions and 6678 deletions
+27
View File
@@ -0,0 +1,27 @@
import * as xmldomRuntime from 'xmldom';
export interface IDOMParser {
parseFromString(source: string, mimeType: string): Document;
}
export interface IDOMParserConstructor {
new (): IDOMParser;
}
export interface IXMLSerializer {
serializeToString(node: Node): string;
}
export interface IXMLSerializerConstructor {
new (): IXMLSerializer;
}
export interface IXmlDomModule {
DOMParser: IDOMParserConstructor;
XMLSerializer: IXMLSerializerConstructor;
[key: string]: unknown;
}
export const DOMParser: IDOMParserConstructor = xmldomRuntime.DOMParser as unknown as IDOMParserConstructor;
export const XMLSerializer: IXMLSerializerConstructor = xmldomRuntime.XMLSerializer as unknown as IXMLSerializerConstructor;
export const xmldom: IXmlDomModule = xmldomRuntime as unknown as IXmlDomModule;