From fcdb5ca193406ef02dba8db4d7684d8c74089552 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 12 May 2024 17:18:54 +0200 Subject: Updated 9 files and added 103 files (automated) --- generator/node_modules/@xmldom/xmldom/index.d.ts | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 generator/node_modules/@xmldom/xmldom/index.d.ts (limited to 'generator/node_modules/@xmldom/xmldom/index.d.ts') diff --git a/generator/node_modules/@xmldom/xmldom/index.d.ts b/generator/node_modules/@xmldom/xmldom/index.d.ts new file mode 100644 index 0000000..9e9f81b --- /dev/null +++ b/generator/node_modules/@xmldom/xmldom/index.d.ts @@ -0,0 +1,43 @@ +/// + +declare module "@xmldom/xmldom" { + var DOMParser: DOMParserStatic; + var XMLSerializer: XMLSerializerStatic; + var DOMImplementation: DOMImplementationStatic; + + interface DOMImplementationStatic { + new(): DOMImplementation; + } + + interface DOMParserStatic { + new (): DOMParser; + new (options: Options): DOMParser; + } + + interface XMLSerializerStatic { + new (): XMLSerializer; + } + + interface DOMParser { + parseFromString(xmlsource: string, mimeType?: string): Document; + } + + interface XMLSerializer { + serializeToString(node: Node): string; + } + + interface Options { + locator?: any; + errorHandler?: ErrorHandlerFunction | ErrorHandlerObject | undefined; + } + + interface ErrorHandlerFunction { + (level: string, msg: any): any; + } + + interface ErrorHandlerObject { + warning?: ((msg: any) => any) | undefined; + error?: ((msg: any) => any) | undefined; + fatalError?: ((msg: any) => any) | undefined; + } +} -- cgit