You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1001 B
44 lines
1001 B
2 years ago
|
/// <reference lib="dom" />
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
}
|